Files
kotlin-fork/js/js.translator/testData/box/propertyAccess/twoClassesWithProperties.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

17 lines
223 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1112
package foo
class A() {
val a: Int = 1
}
class B() {
val b: Int = 2
}
fun box(): String {
if (A().a != 1) return "fail1"
if (B().b != 2) return "fail2"
return "OK"
}