Skip to content

Commit ff2f451

Browse files
committed
Fix issue with Dynamic & containsUnknownTypeParameters
1 parent 74f7e4c commit ff2f451

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/intellij/plugins/haxe/model/type/ResultHolder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ public static boolean containsUnknownTypeParameters(ResultHolder holder) {
294294
SpecificTypeReference type = holder.getType();
295295
if (type instanceof SpecificHaxeClassReference classReference) {
296296
for (ResultHolder specific : classReference.getSpecifics()) {
297+
// ignore unknown if in Dynamic
298+
if(specific.isDynamic() && containsUnknownTypeParameters(specific)) return false;
297299
if (specific.isUnknown() || containsUnknownTypeParameters(specific)) return true;
298300
}
299301
}

0 commit comments

Comments
 (0)