Created
July 10, 2013 08:55
-
-
Save erokhins/5964612 to your computer and use it in GitHub Desktop.
Kara.attr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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