analyze function arguments after completion for unresolved and ambiguity cases
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
package d
|
||||
|
||||
fun bar() {
|
||||
val i: Int? = 42
|
||||
if (i != null) {
|
||||
<!OVERLOAD_RESOLUTION_AMBIGUITY!>doSmth1<!> {
|
||||
val x = i + 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun doSmth1(f: ()->Unit) {}
|
||||
fun doSmth1(g: (Int)->Unit) {}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user