2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
15 lines
411 B
Kotlin
Vendored
15 lines
411 B
Kotlin
Vendored
// COMPARE_WITH_LIGHT_TREE
|
|
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class test
|
|
|
|
fun foo(@test f : Int) {}
|
|
|
|
var bar : Int = 1
|
|
set(@test v) {}
|
|
|
|
val x : (Int) -> Int = {@test <!TYPE_MISMATCH, UNINITIALIZED_VARIABLE!>x<!> <!SYNTAX!>: Int -> x<!>} // todo fix parser annotation on lambda parameter
|
|
|
|
class Hello(@test args: Any) {
|
|
}
|