[JS BE] add tests for es6-classes
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1342
|
||||
//WITH_RUNTIME
|
||||
|
||||
package test
|
||||
|
||||
import test.A.p
|
||||
|
||||
object A {
|
||||
lateinit var p: String
|
||||
var result: String
|
||||
|
||||
init {
|
||||
result = if (::p.isInitialized) "FAIL" else "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return A.result
|
||||
}
|
||||
Reference in New Issue
Block a user