Skip to content

Commit b9ea4cb

Browse files
committed
Allow IsManagedType intrinsic to accept values
Previously it only accepted type references.
1 parent ca225d3 commit b9ea4cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- The `IsManagedType` intrinsic would only accept type references - it now accepts values.
13+
1014
## [1.16.0] - 2025-05-09
1115

1216
### Added

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)