diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/CodeUtils.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/CodeUtils.kt index 663772b9627..35677719d03 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/CodeUtils.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/CodeUtils.kt @@ -19,7 +19,9 @@ package org.jetbrains.kotlin.native.interop.gen val kotlinKeywords = setOf( "as", "break", "class", "continue", "do", "dynamic", "else", "false", "for", "fun", "if", "in", "interface", "is", "null", "object", "package", "return", "super", "this", "throw", - "true", "try", "typealias", "val", "var", "when", "while" + "true", "try", "typealias", "val", "var", "when", "while", + // While not technically keywords, those shall be escaped as well. + "_", "__", "___" ) /**