Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/kt1860-negative.fir.kt
T
Andrey Zinovyev 2f7d6da22f [FIR][LightTree] Generate and fix missing tests
Add TYPE_PARAMETERS_LIST positioning
Use whole branch as source in when branches
2021-04-20 18:13:05 +03:00

11 lines
334 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun foo(@<!UNRESOLVED_REFERENCE!>varargs<!> f : Int) {}
var bar : Int = 1
set(@<!UNRESOLVED_REFERENCE!>varargs<!> v) {}
val x : (Int) -> Int = <!INITIALIZER_TYPE_MISMATCH{LT}!>{@<!UNRESOLVED_REFERENCE!>varargs<!> x <!SYNTAX!>: Int -> x<!>}<!>
class Hello(@<!UNRESOLVED_REFERENCE!>varargs<!> args: Any) {
}