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

javatest.MemberCollisionsTest.kt Maven / Gradle / Ivy

package javatest

object MemberCollisionsTest {
	@JvmStatic fun main(args: Array) {
		val b = B()
		println("MemberCollisionsTest:" + b.a + ":" + b.b)
	}

	//internal open class A0 {
	//	val ctx: String = "3"
	//}

	internal open class A {
		val _ctx: String = ""
		//val ctx: Int = 2

		val a: String get() = _ctx
	}

	internal class B : A() {
		val ctx: Int = 5

		val b: Int get() = ctx
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy