New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2019-02-13 12:18:08 +03:00
committed by Ilya Kirillov
parent 9c71d5ca25
commit ea2081c2f0
40 changed files with 518 additions and 14 deletions
@@ -0,0 +1,3 @@
internal annotation class TestAnnotation
class Test(@field:TestAnnotation @set:TestAnnotation @get:TestAnnotation @param:TestAnnotation var arg: String?)
@@ -1,10 +1,2 @@
open class Base internal constructor(x: Int) {
var x = 42
protected set
init {
this.x = x
}
}
internal class Derived(b: Base) : Base(b.x)
open class Base internal constructor(val x: Int)
internal class Derived(b: Base) : Base(b.x)
@@ -0,0 +1,7 @@
class C {
var x: String? = ""
get() {
println("getter invoked")
return field
}
}
@@ -0,0 +1,7 @@
class C {
var x: String? = ""
get() {
println("getter invoked")
return field
}
}
@@ -0,0 +1,14 @@
class C {
private var myX: String? = ""
var x: String?
get() = myX
set(x) {
println("setter invoked")
myX = x
}
internal fun foo() {
myX = "a"
}
}
@@ -0,0 +1,16 @@
class C {
private var x: String? = ""
fun getX(): String? {
return x
}
fun setX(x: String?) {
println("setter invoked")
this.x = x
}
internal fun foo() {
x = "a"
}
}
@@ -0,0 +1,12 @@
class C {
protected var x: String? = ""
fun getX(): String? {
return x
}
fun setX(x: String?) {
println("setter invoked")
this.x = x
}
}