analyze function arguments after completion for unresolved and ambiguity cases

This commit is contained in:
svtk
2013-11-26 17:42:39 +04:00
committed by Svetlana Isakova
parent cde36adbdc
commit b178c79573
5 changed files with 53 additions and 3 deletions
@@ -0,0 +1,26 @@
open class HtmlTag
trait NavigationBuilder {
public var text: ((String) -> String)?
~in_NB~var inNavigationBuilder: Int
}
fun HtmlTag.navigation(body: NavigationBuilder.() -> Unit) {
}
fun HtmlTag.a(contents: A.() -> Unit) {
}
trait 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
}
}
}