Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitReference.fir.kt
T
2019-12-27 11:36:19 +03:00

15 lines
243 B
Kotlin
Vendored

// SKIP_TXT
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !LANGUAGE: +NewInference
fun foo(f: () -> Unit) {}
fun bar(): Int = 42
fun test() {
foo {
::bar // should be fine
}
foo {
{ "something" } // should be fine
}
}