From c675fff032bfc6542d6c1de19e0610b176901562 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Thu, 10 Oct 2019 17:55:18 +0300 Subject: [PATCH] Fix typo in assertion --- .../org/jetbrains/kotlin/native/interop/gen/StubIrType.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))