e30b9758f4
Made via diagnostics NON_EXHAUSTIVE_WHEN_FOR_SEALED_CLASS with INFO severity and quick-fix So #KT-17580 Fixed
17 lines
367 B
Kotlin
Vendored
17 lines
367 B
Kotlin
Vendored
// "Add remaining branches" "true"
|
|
// ERROR: Unresolved reference: TODO
|
|
// ERROR: Unresolved reference: TODO
|
|
// ERROR: Unresolved reference: TODO
|
|
sealed class Variant {
|
|
object Singleton : Variant()
|
|
|
|
class Something(val x: Int) : Variant()
|
|
|
|
object Another : Variant()
|
|
}
|
|
fun test(v: Variant?) {
|
|
wh<caret>en(v) {
|
|
Variant.Singleton -> "s"
|
|
}
|
|
}
|