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 -1
View File
@@ -6,7 +6,7 @@
~foo~fun foo(~foo.a~a : `kotlin::Char`Char) = `foo.a`a`:kotlin::Char`
~fooB~fun fooB() = `foo`foo('1')`:kotlin::Char`
~foo.1~fun foo() : Int = (1.`kotlin::Int.plus(Int)`plus(1))`:kotlin::Int`
~foo1~fun foo1() : `B`B = `B`B()`:B`
~foo91~fun foo1() : `B`B = `B`B()`:B`
~A.a~val a : `kotlin::Int`Int
}
+1 -1
View File
@@ -18,7 +18,7 @@ object B : A {}
fun f() {
~y~val y = object : Foo(`ns.x`x) {
{
init {
`ns.x`x + 12
}
@@ -6,7 +6,7 @@ class C(~x~x : Int, ~y~val y : Int) : Base(`x`x /*parameter*/), Base1 by Base1(`
var zy = `y`y // parameter
get() = `y`y // property
{
init {
val wx = `x`x
val wy = `y`y
}
@@ -11,7 +11,7 @@ fun test() {
}
class Foo(~bar~var bar : Int, ~barr~barr : Int, ~barrr~val barrr : Int) {
{
init {
`bar`bar = 1
`barr`barr = 1
`barrr`barrr = 1