mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
15 lines
267 B
Kotlin
Vendored
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
|
|
} |