Files
kotlin-fork/idea/testData/inspectionsLocal/replaceArrayOfWithLiteral/noArray.kt
T
2017-05-16 20:44:12 +03:00

10 lines
231 B
Kotlin
Vendored

// LANGUAGE_VERSION: 1.2
// PROBLEM: none
// ERROR: Type mismatch: inferred type is Int but Array<String> was expected
annotation class Some(val arg: Array<String>)
fun create(x: Int) = x
@Some(arg = <caret>create(123))
class My