Skip to content

Commit ff68f3a

Browse files
committed
Fix overload resolution failures on the variant overload of Copy
1 parent 8caf8e5 commit ff68f3a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3333
- False positives around wrapped type declarations in `VisibilityKeywordIndentation`.
3434
- False negatives around inline `var` and `const` in `PlatformDependentTruncation`.
3535
- Trailing whitespace within comments not recognized in `TrailingWhitespace`.
36+
- Overload resolution failures on the variant overload of the `Copy` intrinsic.
3637
- Several compiler directives were not being recognized:
3738
- `E`
3839
- `F`

delphi-frontend/src/main/java/au/com/integradev/delphi/type/intrinsic/IntrinsicsInjector.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ private void buildRoutines() {
192192
.param(type(INTEGER))
193193
.param(type(INTEGER))
194194
.returns(IntrinsicReturnType.copy(typeFactory));
195+
routine("Copy")
196+
.param(ANY_VARIANT)
197+
.param(type(INTEGER))
198+
.param(type(INTEGER))
199+
.returns(IntrinsicReturnType.copy(typeFactory));
195200
routine("Copy")
196201
.param(LIKE_DYNAMIC_ARRAY)
197202
.param(dynamicArraySizeType())

0 commit comments

Comments
 (0)