Files
kotlin/idea/testData/quickfix/createFromUsage/createClass/callExpression/callInWhenEntry.kt
2018-02-21 13:21:17 +03:00

15 lines
267 B
Kotlin
Vendored

// "Create class 'AAA'" "true"
// ERROR: Unresolved reference: BBB
abstract class I
fun test(n: Int): I? {
return if (n > 0) {
when (n) {
1 -> <caret>AAA("1")
2 -> BBB("2")
else -> null
}
}
else null
}