Skip to content

Instantly share code, notes, and snippets.

@erokhins
Created July 10, 2013 08:55
Show Gist options
  • Select an option

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

Select an option

Save erokhins/5964612 to your computer and use it in GitHub Desktop.
Kara.attr
open class Attributes {
var name = "No name"
var time = "10:00"
}
class A {
val attr = object: Attributes() {
var href = ""
}
}
class TABLE {
val attr = object: Attributes() {
var height = 10
}
}
class TD {
val attr = Attributes()
}
fun main(args: Array<String>) {
with(A()) {
attr.href
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment