Added init keyword to testdata

This commit is contained in:
Stanislav Erokhin
2015-04-01 05:21:26 +03:00
parent 6ab83c9b8c
commit b152211096
88 changed files with 114 additions and 114 deletions
@@ -2,7 +2,7 @@ var global = 0;
class C {
companion object {
{
init {
global = 1;
}
}
@@ -1,7 +1,7 @@
class C() {
public var f: Int
{
init {
$f = 610
}
}
@@ -5,7 +5,7 @@ class World() {
public val items: ArrayList<Item> = ArrayList<Item>()
inner class Item() {
{
init {
items.add(this)
}
}
@@ -3,7 +3,7 @@ class A {
val b = 0
val c = b
{
init {
val d = b
}
}
@@ -1,5 +1,5 @@
class Reluctant() {
{
init {
throw Exception("I'm not coming out")
}
}
@@ -1,7 +1,7 @@
//adopted snippet from kdoc
open class KModel {
val sourcesInfo: String
;{
init {
fun relativePath(psiFile: String): String {
return psiFile;
}
@@ -5,7 +5,7 @@ class A {
class B {
class D {
{
init {
A().bar {
this.foo()
}
@@ -1,7 +1,7 @@
class Test {
val property:Int
;{
init {
fun local():Int {
return 10;
}
@@ -1,7 +1,7 @@
class A {
var a: String = "Fail"
{
init {
a = object {
override fun toString(): String = "OK"
}.toString()
@@ -1,7 +1,7 @@
class A {
var a: String = "Fail"
{
init {
open class B() {
open fun s() : String = "O"
}
@@ -7,7 +7,7 @@ public object SomeObject {
}
}
{
init {
workerThread.start()
}
@@ -35,7 +35,7 @@ public class SomeClass() {
}
}
{
init {
workerThread.start()
workerThread.join()
}
@@ -2,7 +2,7 @@ fun box() : String {
var a = 1
object {
{
init {
a = 2
}
}
@@ -9,7 +9,7 @@ class Identifier<T>(t : T?, myHasDollar : Boolean) {
return __
}
}
{
init {
$myT = t
}
}
@@ -5,7 +5,7 @@ public open class Identifier<T>(myName : T?, myHasDollar : Boolean) {
private var myHasDollar : Boolean
private var myNullable : Boolean = true
{
init {
$myName = myName
$myHasDollar = myHasDollar
}
@@ -3,7 +3,7 @@ import java.util.HashMap
object O {
val mmmap = HashMap<String, Int>();
{
init {
fun doStuff() {
mmmap.put("two", 2)
}
@@ -5,7 +5,7 @@ public object RefreshQueue {
}
});
{
init {
workerThread.start()
}
}
@@ -6,7 +6,7 @@ public class Foo
private var bar = 0
}
{
init {
++bar
}
@@ -9,7 +9,7 @@ class Foo() {
val c: String
var d: String
{
init {
c = bar
d = Foo.bar
boo = "O"
@@ -1,7 +1,7 @@
object Foo {
val bar: String
{
init {
bar = "OK"
}
}
@@ -2,7 +2,7 @@ class Foo {
companion object {
val bar: String
{
init {
bar = "OK"
}
}
@@ -1,5 +1,5 @@
abstract class WaitFor {
{
init {
condition()
}
@@ -2,13 +2,13 @@ package one_extends_base
open class Base<T>(name : T?) {
var myName : T?
{
init {
$myName = name
}
}
open class One<T, K>(name : T?, second : K?) : Base<T?>(name) {
var mySecond : K?
{
init {
$mySecond = second
}
}