Files
kotlin-fork/idea/testData/quickfix/autoImports/noImportForIndex.kt
T

17 lines
374 B
Kotlin
Vendored

// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
// ERROR: Unresolved reference: some[12]
// ERROR: No get method providing array access
package Teting
class Some() {
// fun get(i : Int) : Int {
// return i
// }
}
fun main(args : Array<String>) {
val some = Some()
// Nothing should be changed
<caret>some[12]
}