761a0a7d0d
Specifically, the report the following 4 errors. * NON_VARARG_SPREAD * ARGUMENT_PASSED_TWICE * TOO_MANY_ARGUMENTS * NO_VALUE_FOR_PARAMETER Also added/updated the following position strategies. * NAME_OF_NAMED_ARGUMENT * VALUE_ARGUMENTS
17 lines
335 B
Kotlin
Vendored
17 lines
335 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
fun foo(u : Unit) : Int = 1
|
|
|
|
fun test() : Int {
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>(1)
|
|
val a : () -> Unit = {
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>(1)
|
|
}
|
|
return 1 <!NONE_APPLICABLE!>-<!> "1"
|
|
}
|
|
|
|
class A() {
|
|
val x : Int = foo1(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>xx<!>)
|
|
}
|
|
|
|
fun foo1() {}
|