Skip to content

Commit 79dded2

Browse files
cirrasfourls
authored andcommitted
Allow IsManagedType intrinsic to accept values
Previously it only accepted type references.
1 parent 8bbb1b1 commit 79dded2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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
- Type resolution failures on `as` casts where the type is returned from a routine invocation.
3232
- Inaccurate type resolution when calling a constructor on a class reference type.
3333
- Grammar ambiguity causing attributes to be misinterpreted as interface GUIDs.
34+
- Failure to resolve invocations of `System.IsManagedType` where a value is passed.
3435

3536
## [1.16.0] - 2025-05-09
3637

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private void buildRoutines() {
243243
.varParam(LIKE_DYNAMIC_ARRAY)
244244
.param(dynamicArraySizeType());
245245
routine("IsConstValue").param(TypeFactory.untypedType()).returns(type(BOOLEAN));
246-
routine("IsManagedType").param(ANY_CLASS_REFERENCE).returns(type(BOOLEAN));
246+
routine("IsManagedType").param(TypeFactory.untypedType()).returns(type(BOOLEAN));
247247
routine("Length").param(type(SHORTSTRING)).returns(IntrinsicReturnType.length(typeFactory));
248248
routine("Length").param(type(ANSISTRING)).returns(IntrinsicReturnType.length(typeFactory));
249249
routine("Length").param(type(UNICODESTRING)).returns(IntrinsicReturnType.length(typeFactory));

0 commit comments

Comments
 (0)