JS: create new common directory for all generated tests, migrate several tests there

This commit is contained in:
Alexey Andreev
2016-08-26 16:44:48 +03:00
parent 34a57f863b
commit 2bf0199959
321 changed files with 2123 additions and 2001 deletions
+30
View File
@@ -0,0 +1,30 @@
package foo
enum class A {
FOO,
BAR() {
fun explicitFromEntry() = A.FOO
fun implicitFromEntry() = FOO
};
fun explicit() = A.FOO
fun implicit() = FOO
}
fun A.extExplicit() = A.FOO
//fun A.extImplicit() = FOO
fun box(): String {
assertEquals(A.FOO, A.FOO.explicit(), "explicit access")
assertEquals(A.FOO, A.FOO.implicit(), "implicit access")
assertEquals(A.FOO, A.FOO.explicit(), "explicit access from BAR")
assertEquals(A.FOO, A.FOO.implicit(), "implicit access from BAR")
assertEquals(A.FOO, A.FOO.extExplicit(), "explicit access from ext fun")
// TODO uncoment when KT-5605 will be fixed
//assertEquals(A.FOO, A.FOO.extImplicit(), "implicit access from ext fun")
return "OK"
}