tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
sealed class A {
|
||||
object B : A()
|
||||
|
||||
class C : A()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a: A = A.C()
|
||||
val b: Boolean
|
||||
when (a) {
|
||||
A.B -> b = true
|
||||
is A.C -> b = false
|
||||
}
|
||||
return if (!b) "OK" else "FAIL"
|
||||
}
|
||||
Reference in New Issue
Block a user