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

20 lines
294 B
Plaintext
Vendored

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