Skip to content

Commit 05cb76a

Browse files
committed
Fix overload resolution failures on the variant overload of Copy
1 parent 76eec4d commit 05cb76a

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
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
- False positives from nested finally-except blocks in `RedundantJump`.
3232
- False positives around wrapped type declarations in `VisibilityKeywordIndentation`.
3333
- Trailing whitespace within comments not recognized in `TrailingWhitespace`.
34+
- Overload resolution failures on the variant overload of the `Copy` intrinsic.
3435
- Several compiler directives were not being recognized:
3536
- `E`
3637
- `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)