fix tests by adding missing 'init' keywords to testdata
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user