mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
16 lines
395 B
Kotlin
16 lines
395 B
Kotlin
fun foo(<!UNUSED_PARAMETER!>u<!> : Unit) : Int = 1
|
|
|
|
fun test() : Int {
|
|
foo(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
|
val <!UNUSED_VARIABLE!>a<!> : () -> Unit = {
|
|
foo(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
|
}
|
|
return 1 <!NONE_APPLICABLE!>-<!> "1"
|
|
}
|
|
|
|
class A() {
|
|
val x : Int = <!TYPE_MISMATCH!>foo1(<!UNRESOLVED_REFERENCE, TOO_MANY_ARGUMENTS!>xx<!>)<!>
|
|
}
|
|
|
|
fun foo1() {}
|