example project that kotlin-native bug
if pkgName
contains invalid identifier chars, compile fail with an error.
First, try cinterop -def examplelib.def
. This will succeed.
Next, try cinterop -def example-lib.def
.This will fail with an error like this.
build/invalid-build/kotlin/example-lib/example-lib.kt:3:16: error: expecting a top level declaration
package example-lib
^
build/invalid-build/kotlin/example-lib/example-lib.kt:3:17: error: expecting a top level declaration
package example-lib
^
build/invalid-build/kotlin/example-lib/example-lib.kt:5:1: error: expecting a top level declaration
import konan.SymbolName
- kotlin-native 0.6
- macOS 10.13.3