mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
20 lines
294 B
Plaintext
Vendored
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() {
|
|
|
|
}
|