JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package foo
|
||||
|
||||
class A {
|
||||
private val p: Int
|
||||
get() = 4
|
||||
|
||||
companion object B {
|
||||
val p: Int
|
||||
get() = 6
|
||||
}
|
||||
|
||||
fun a() = p + B.p
|
||||
}
|
||||
|
||||
|
||||
fun box(): String {
|
||||
if (A().a() != 10) return "Fail"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user