Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23e3bbe

Browse files
smowtonigfoo
authored andcommitted
Fix: don't treat local classes as unspecialised
This shouldn't matter either way since they can't be subject to external references
1 parent 4477482 commit 23e3bbe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

java/kotlin-extractor/src/main/kotlin/utils/TypeSubstitution.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ fun isUnspecialised(paramsContainer: IrTypeParametersContainer, args: List<IrTyp
209209
val parentUnspecialised = when {
210210
remainingArgs.isEmpty() -> true
211211
parent == null -> false
212+
parent !is IrClass -> false
212213
else -> isUnspecialised(paramsContainer.parentAsClass, remainingArgs)
213214
}
214215
return unspecialisedHere && parentUnspecialised

0 commit comments

Comments
 (0)