220cb95b85
Relates to #KT-24631
20 lines
301 B
Plaintext
Vendored
20 lines
301 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 <caret>AAA(s: String) : I() {
|
|
|
|
}
|