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
@@ -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,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,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,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())
}
@@ -3,7 +3,7 @@
class A {
val i: Int
{
init {
i = 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)