Files
kotlin/compiler/testData/diagnostics/tests/functionAsExpression/WithoutBody.kt
2015-05-20 09:24:56 +03:00

12 lines
342 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
annotation class ann
val bas = <!NON_MEMBER_FUNCTION_NO_BODY!>fun ()<!>
fun bar(a: Any) = <!NON_MEMBER_FUNCTION_NO_BODY!>fun ()<!>
fun outer() {
bar(<!NON_MEMBER_FUNCTION_NO_BODY!>fun ()<!>)
bar(l@ <!NON_MEMBER_FUNCTION_NO_BODY!>fun ()<!>)
bar(<!NON_MEMBER_FUNCTION_NO_BODY!>@ann fun ()<!>)
}