Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/resolveAnnotatedLambdaArgument.kt
T
Denis Zharkov 849b8acbf8 Replace annotations with brackets in testData
Just in tests that changed after deprecation
2015-05-07 22:36:16 +03:00

10 lines
212 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER -DEPRECATED_ANNOTATION_SYNTAX
annotation class Ann
fun <T> bar(block: (T) -> Int) {}
fun foo() {
bar<Int> @Ann [Ann] { x -> x }
bar<Int> @Ann [Ann] label@{ x -> x }
}