ec4cbfef59
Implementation for PSI only
14 lines
342 B
Kotlin
Vendored
14 lines
342 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun testArgumentInCall() {
|
|
fun bar(i: Int, s: String, x: Any) {}
|
|
|
|
<!UNREACHABLE_CODE!>bar(<!>1, todo(), <!UNREACHABLE_CODE!>"")<!>
|
|
}
|
|
|
|
fun testArgumentInVariableAsFunctionCall(f: (Any) -> Unit) {
|
|
<!UNREACHABLE_CODE!>f(<!>todo()<!UNREACHABLE_CODE!>)<!>
|
|
}
|
|
|
|
fun todo(): Nothing = throw Exception()
|