fix tests by adding missing 'init' keywords to testdata

This commit is contained in:
Dmitry Jemerov
2015-04-27 13:23:15 +02:00
parent 98b8784ab0
commit f93eeeb563
130 changed files with 277 additions and 305 deletions
@@ -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)
}
@@ -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
@@ -4,7 +4,7 @@ class A(val n: Int) {
}
class Foo {
{
init {
var a = A(0)
<selection>a += 2</selection>
a = a + 2
@@ -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)