Escape special variable names in interop.

This commit is contained in:
Nikolay Igotti
2017-12-18 11:48:51 +03:00
parent 0ef6f2fa5b
commit 2bbc7d6058
@@ -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.
"_", "__", "___"
)
/**