fix tests by adding missing 'init' keywords to testdata
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
<caret>class B {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// class B
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: up
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// class B
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
<caret>class B {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
// IS_APPLICABLE: false
|
||||
class B {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: up
|
||||
// IS_APPLICABLE: false
|
||||
class B {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
class B {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
class B {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ class A {
|
||||
class B {
|
||||
|
||||
}
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class A {
|
||||
class B {
|
||||
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class A {
|
||||
val y = ""
|
||||
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class A {
|
||||
val x = ""
|
||||
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ class A {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@ class A {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
val y = ""
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
class A {
|
||||
val y = ""
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
val y = ""
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// MOVE: up
|
||||
class A {
|
||||
<caret>{
|
||||
<caret>init {
|
||||
|
||||
}
|
||||
val y = ""
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
<caret>fun foo() {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// fun foo
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: up
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// fun foo
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
<caret>fun foo() {
|
||||
|
||||
}
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
class A {
|
||||
// val x
|
||||
<caret>val x = ""
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: down
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// val x
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// MOVE: up
|
||||
// class A
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
// val x
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
class A {
|
||||
// val x
|
||||
<caret>val x = ""
|
||||
{
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
var next: A? = A()
|
||||
val myBar: String? = A.BAR
|
||||
|
||||
{
|
||||
init {
|
||||
A.BAR = ""
|
||||
A.foos()
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
var next: A? = A()
|
||||
val myBar: String? = A.BAR
|
||||
|
||||
{
|
||||
init {
|
||||
A.BAR = ""
|
||||
A.foos()
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
var next: A? = A()
|
||||
val myBar: String? = A.BAR
|
||||
|
||||
{
|
||||
init {
|
||||
A.BAR = ""
|
||||
A.foos()
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
var next: A? = A()
|
||||
val myBar: String? = A.BAR
|
||||
|
||||
{
|
||||
init {
|
||||
A.BAR = ""
|
||||
A.foos()
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ public class KOuter: Outer() {
|
||||
var next: Outer.A? = (this@KOuter : Outer).A()
|
||||
val myBar: String? = (this@KOuter : Outer).A().bar
|
||||
|
||||
{
|
||||
init {
|
||||
(this@KOuter : Outer).A().bar = ""
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ public class X(bar: String? = Outer.A.BAR): Outer.A() {
|
||||
var next: Outer.A? = Outer.A()
|
||||
val myBar: String? = Outer.A.BAR
|
||||
|
||||
{
|
||||
init {
|
||||
Outer.A.BAR = ""
|
||||
Outer.A.foos()
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ public class X(bar: String? = Inner.A.bar): Inner.A() {
|
||||
var next: Inner.A? = Inner.A()
|
||||
val myBar: String? = Inner.A.bar
|
||||
|
||||
{
|
||||
init {
|
||||
Inner.A.bar = ""
|
||||
Inner.A.foo()
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ public class KOuter: Outer() {
|
||||
var next: Outer.A? = (this@KOuter : Outer).A()
|
||||
val myBar: String? = (this@KOuter : Outer).A().bar
|
||||
|
||||
{
|
||||
init {
|
||||
(this@KOuter : Outer).A().bar = ""
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ public class X(bar: String? = Outer.A.bar): Outer.A() {
|
||||
var next: Outer.A? = Outer.A()
|
||||
val myBar: String? = Outer.A.bar
|
||||
|
||||
{
|
||||
init {
|
||||
Outer.A.bar = ""
|
||||
Outer.A.foo()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
enum class E {
|
||||
{
|
||||
init {
|
||||
foo(1)
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@ enum class E {
|
||||
|
||||
O
|
||||
A {
|
||||
{
|
||||
init {
|
||||
foo(1)
|
||||
}
|
||||
|
||||
override fun foo(n: Int): Int = n + 1
|
||||
}
|
||||
B {
|
||||
{
|
||||
init {
|
||||
foo(1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetParameter
|
||||
// OPTIONS: usages
|
||||
open class A<T>(<caret>foo: T) {
|
||||
{
|
||||
init {
|
||||
println(foo)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetTypeParameter
|
||||
// OPTIONS: usages
|
||||
open class A<<caret>T>(foo: T, list: List<T>) {
|
||||
{
|
||||
init {
|
||||
fun T.bar() {}
|
||||
|
||||
foo.bar()
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
annotation class Ann
|
||||
class A {
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
init {
|
||||
}
|
||||
|
||||
fun foo1() {
|
||||
@@ -34,7 +28,7 @@ class A {
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
init {
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
annotation class Ann
|
||||
class A {
|
||||
{}{}{}
|
||||
init{}
|
||||
fun foo1() {
|
||||
|
||||
}
|
||||
@@ -18,7 +18,7 @@ class A {
|
||||
}
|
||||
|
||||
|
||||
{}
|
||||
init {}
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
annotation class Ann
|
||||
class A {
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
init {
|
||||
}
|
||||
|
||||
@@ -15,9 +9,6 @@ class A {
|
||||
init {
|
||||
}
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
/* abcde */init {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
annotation class Ann
|
||||
class A
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
init
|
||||
{
|
||||
}
|
||||
@@ -19,9 +13,6 @@ class A
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
/* abcde */init
|
||||
{
|
||||
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
annotation class Ann
|
||||
class A {
|
||||
{}{}
|
||||
|
||||
init{}
|
||||
|
||||
init {}
|
||||
|
||||
init {}
|
||||
|
||||
{}
|
||||
|
||||
/* abcde */init {
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ open class KClientBase {
|
||||
}
|
||||
|
||||
class <caret>KClient(): KClientBase() {
|
||||
{
|
||||
init {
|
||||
fun localFun(s: String): String = packageFun(s)
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ open class KClientBase {
|
||||
}
|
||||
|
||||
object <caret>KClient: KClientBase() {
|
||||
{
|
||||
init {
|
||||
fun localFun(s: String): String = packageFun(s)
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ fun packageFun(s: String): String = s + KA().name
|
||||
val packageVal = KA().name
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
KA()
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ fun packageFun(s: String): String = KBase().foo("") + KA().foo(s)
|
||||
val packageVal = KBase().foo("") + KA().foo("")
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
KA().foo("")
|
||||
KBase().foo("")
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ fun packageFun(s: String): String = s + T.KA().name
|
||||
val packageVal = T.KA().name
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
T.KA()
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ fun packageFun(s: String): String = s + T().KA().name
|
||||
val packageVal = T().KA().name
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
T().KA()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ fun <caret>packageFun(s: String): String = s
|
||||
val packageVal = packageFun("")
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
packageFun("")
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ var <caret>packageVal = ""
|
||||
fun packageFun(s: String): String = packageVal + s
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
packageVal = ""
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class KClient {
|
||||
|
||||
object KClientObj {
|
||||
val a = packageVal
|
||||
{
|
||||
init {
|
||||
packageVal = ""
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ fun packageFun(s: String): String = KBase().name + KA().name
|
||||
val packageVal = KBase().name + KA().name
|
||||
|
||||
class KClient {
|
||||
{
|
||||
init {
|
||||
KBase().name = ""
|
||||
KA().name = ""
|
||||
}
|
||||
@@ -37,7 +37,7 @@ class KClient {
|
||||
|
||||
object KClientObj {
|
||||
val a = KBase().name + KA().name
|
||||
{
|
||||
init {
|
||||
KBase().name = ""
|
||||
KA().name = ""
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class B: A() {}
|
||||
class MyClass(a: A = run { class X: A(); object: A() {} }) {
|
||||
inner class G: A() {}
|
||||
|
||||
{
|
||||
init {
|
||||
class C: A()
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ class B: A
|
||||
class MyClass(a: A = run { class X: A; object: A {} }) {
|
||||
inner class G: A {}
|
||||
|
||||
{
|
||||
init {
|
||||
class C: A
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ open class <caret>A
|
||||
object B: A()
|
||||
|
||||
class MyClass(a: A = run { object: A() {} }) {
|
||||
{
|
||||
init {
|
||||
object C: A()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ trait <caret>A
|
||||
object B: A
|
||||
|
||||
class MyClass(a: A = run { object: A {} }) {
|
||||
{
|
||||
init {
|
||||
object C: A
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ trait B: A()
|
||||
class MyClass(a: A = run { trait X: A(); object: A() {} }) {
|
||||
inner trait G: A() {}
|
||||
|
||||
{
|
||||
init {
|
||||
trait C: A()
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ trait B: A
|
||||
class MyClass(a: A = run { trait X: A; object: A {} }) {
|
||||
inner trait G: A {}
|
||||
|
||||
{
|
||||
init {
|
||||
trait C: A
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
val x: A? = null
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in A.<init>
|
||||
class A(val a: Int, b: Int) {
|
||||
{
|
||||
init {
|
||||
println(<selection>a + b</selection> - 1)
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in A.<init>
|
||||
class A(val a: Int, b: Int) {
|
||||
{
|
||||
init {
|
||||
println(i(b) - 1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in A.<init>
|
||||
class A(val a: Int, b: Int) {
|
||||
{
|
||||
init {
|
||||
println({ <selection>a + b</selection> - 1 }.invoke())
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in A.<init>
|
||||
class A(val a: Int, b: Int) {
|
||||
{
|
||||
init {
|
||||
println({ i(b) - 1 }.invoke())
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
class A {
|
||||
val i: Int
|
||||
|
||||
{
|
||||
init {
|
||||
i = 1
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
class A {
|
||||
val i: Int
|
||||
|
||||
{
|
||||
init {
|
||||
i = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
do <selection>1</selection> while (true)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
do {
|
||||
val i = 1
|
||||
} while (true)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
do println(<selection>1</selection>) while (true)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
do {
|
||||
val i = 1
|
||||
println(i)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
while (true) <selection>1</selection>
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
while (true) {
|
||||
val i = 1
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
while (true) println(<selection>1</selection>)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
open class A() {
|
||||
{
|
||||
init {
|
||||
while (true) {
|
||||
val i = 1
|
||||
println(i)
|
||||
|
||||
@@ -3,7 +3,7 @@ package test
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
init {
|
||||
val a = object: A() {
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package test
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
init {
|
||||
class B: A() {
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package test
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
init {
|
||||
object O: A() {
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class A6 {
|
||||
class A7 {
|
||||
val a: Int
|
||||
|
||||
{
|
||||
init {
|
||||
a = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Test() {
|
||||
val test = 12;
|
||||
{
|
||||
init {
|
||||
for (i in 0..12) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ fun foo() {
|
||||
fun a(x: Int): Int = b(x) + 1
|
||||
fun b(y: Int): Int = a(y) - 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ fun foo() {
|
||||
val p = 1
|
||||
val q = p + 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ fun foo() {
|
||||
}</selection>
|
||||
|
||||
class B {
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ fun foo() {
|
||||
val g = f() - 1
|
||||
}
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ fun foo() {
|
||||
fun aa(x: Int): Int = bb(x) + 1
|
||||
fun bb(y: Int): Int = aa(y) - 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ fun foo() {
|
||||
val p = 1
|
||||
val q = p + 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ fun foo() {
|
||||
fun a(x: Int): Int = b(x) + 1
|
||||
fun b(y: Int): Int = a(y) - 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ fun foo() {
|
||||
val q = p + 1
|
||||
val p = 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ fun foo() {
|
||||
fun a(x: Int): Int = b(x) + 1
|
||||
fun b(y: Int): Int = a(y) - 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ fun foo() {
|
||||
val p = 1
|
||||
val q = p + 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ class A {
|
||||
fun a(x: Int): Int = b(x) + 1
|
||||
fun b(y: Int): Int = a(y) - 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class A {
|
||||
val p = 1
|
||||
val q = p + 1
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class A {
|
||||
}
|
||||
|
||||
class B {
|
||||
{
|
||||
init {
|
||||
println(1)
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class B {
|
||||
val g = f() - 1
|
||||
}
|
||||
|
||||
{
|
||||
init {
|
||||
println(2)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ class A(var n: Int) {
|
||||
}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
var a = Array(2) { A(it) }
|
||||
<selection>a[1] += 2</selection>
|
||||
a[1] = a[1] + 2
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class A(val n: Int) {
|
||||
}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
var a = A(0)
|
||||
<selection>a += 2</selection>
|
||||
a = a + 2
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class A(val n: Int) {
|
||||
}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
var a = Array(2) { A(it) }
|
||||
<selection>a[1] += 2</selection>
|
||||
a[1] = a[1] + 2
|
||||
|
||||
@@ -6,7 +6,7 @@ class A(var n: Int) {
|
||||
}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
var a = A(0)
|
||||
<selection>a += 2</selection>
|
||||
a = a + 2
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
val array = Array(2) { it }
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
<selection>array[1] = 10</selection>
|
||||
array.set(1, 10)
|
||||
array2.set(1, 10)
|
||||
|
||||
Reference in New Issue
Block a user