albertgao
01/29/2018, 9:15 PMkotlin.test.JUNIT
to test the JVM code. I want to make the function name descriptive like this `fun `this is a test`() {}`. It works fine, but when there is a class declaration inside this test function, it will throw an error:
org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Invalid class name (must be a fully qualified class name in internal form): nz/salect/objJSON/JVMTest$test Two Level Obj$Lesson
Cause: Invalid class name (must be a fully qualified class name in internal form): nz/salect/objJSON/JVMTest$test Two Level Obj To Ensure it’s been parsed$Lesson
Your article said that we can use @JsName
to solve this in js, what about jvm? Thanks 🙂