New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2018-12-01 15:55:37 +03:00
committed by Ilya Kirillov
parent 5236858c20
commit f752796408
330 changed files with 2800 additions and 60 deletions
+5
View File
@@ -0,0 +1,5 @@
package demo
internal enum class MyEnum(val color: Int) {
RED(10), BLUE(20);
}
+1 -1
View File
@@ -13,4 +13,4 @@ enum class E private constructor(private val p: Int) {
internal fun foo(p: Int) {}
internal abstract fun bar()
}
}
@@ -0,0 +1,16 @@
// ERROR: Cannot access 'p': it is invisible (private in a supertype) in 'A'
enum class E(private val p: Int) {
A(1) {
override fun bar() {
foo(p)
}
},
B(2) {
override fun bar() {}
};
internal fun foo(p: Int) {}
internal abstract fun bar()
}
@@ -0,0 +1,5 @@
internal enum class E {
I;
private val name: String? = null
}
@@ -0,0 +1,3 @@
internal enum class Color(val code: Int) {
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);
}