mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
26 lines
503 B
Plaintext
Vendored
26 lines
503 B
Plaintext
Vendored
open class HtmlTag
|
|
|
|
interface NavigationBuilder {
|
|
public var text: ((String) -> String)?
|
|
~in_NB~var inNavigationBuilder: Int
|
|
}
|
|
|
|
fun HtmlTag.navigation(body: NavigationBuilder.() -> Unit) {
|
|
}
|
|
fun HtmlTag.a(contents: A.() -> Unit) {
|
|
}
|
|
|
|
interface A : HtmlTag {
|
|
~text_in_A~var text: String
|
|
~in_A~var inA: Int
|
|
}
|
|
|
|
fun HtmlTag.test(a: String) {
|
|
navigation {
|
|
a {
|
|
`text_in_A`text = "1"
|
|
`in_NB`inNavigationBuilder = 1
|
|
`in_A`inA = 2
|
|
}
|
|
}
|
|
} |