JS backend: _commonFiles/ for common kotlin files in testData/ and every test dir
This commit is contained in:
committed by
Zalim Bashorov
parent
9b433e31a2
commit
dd3dbe5b10
@@ -18,10 +18,6 @@ fun A.extExplicit() = A.FOO
|
||||
fun A.extByThis() = this.FOO
|
||||
//fun A.extImplicit() = FOO
|
||||
|
||||
fun assertEquals<T>(expected: T, actual: T, id: String) {
|
||||
if (expected != actual) throw Exception("Failed on $id, expected = '$expected', actual = '$actual'")
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(A.FOO, A.FOO.explicit(), "explicit access")
|
||||
assertEquals(A.FOO, A.FOO.byThis(), "access by this")
|
||||
|
||||
Reference in New Issue
Block a user