All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jtransc.staticinit.StaticInitTest2.kt Maven / Gradle / Ivy

package jtransc.staticinit

import com.jtransc.io.JTranscConsole

object StaticInitTest2 {
	@JvmStatic fun main(args: Array) {
		JTranscConsole.log(MyClass("a") != null)
		val v = MyClass("test")
		println(v.parent != null)
	}
}

class MyClass(path: String) : MyClass2(path) {
	val parent: MyClass by lazy { MyClass(path + ".") }
}

open class MyClass2(val path: String) {
	val parent2: MyClass2 by lazy { MyClass2(path + ".") }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy