diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/StubIrType.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/StubIrType.kt index 15f73288b54..706ba8deeb0 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/StubIrType.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/StubIrType.kt @@ -21,7 +21,7 @@ class ClassifierStubType( override val nullable: Boolean = false ) : StubType() { fun nested(name: String): ClassifierStubType { - assert(underlyingType != null) { + assert(underlyingType == null) { "Cannot access nested class `$name` of typealias ${classifier.fqName}" } return ClassifierStubType(classifier.nested(name))