Skip to content

Instantly share code, notes, and snippets.

@erokhins
Created June 3, 2013 12:28
Show Gist options
  • Select an option

  • Save erokhins/5697790 to your computer and use it in GitHub Desktop.

Select an option

Save erokhins/5697790 to your computer and use it in GitHub Desktop.
open class A
val A.name = "A"
class B: A()
val B.name = "B"
fun main(args: Array<String>) {
println(A().name)
println(B().name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment