f283f2db43
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
18 lines
329 B
Kotlin
Vendored
18 lines
329 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
fun foo() {}
|
|
fun foo(s: Int) {}
|
|
|
|
|
|
fun bar(a: Any) {}
|
|
fun bar(a: Int) {}
|
|
|
|
fun test() {
|
|
<!NONE_APPLICABLE!>foo<!>(1, 2)
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>("")
|
|
|
|
<!NONE_APPLICABLE!>bar<!>(1, 2)
|
|
<!NONE_APPLICABLE!>bar<!>()
|
|
}
|