[IC] Add tests for sealed classes (KT-45474)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
//sealed interface Base
|
||||
|
||||
class Usage {
|
||||
|
||||
fun doSmth(x: Base) =
|
||||
when (x) {
|
||||
is A -> "A"
|
||||
is B -> "B"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user