add test files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package foo
|
||||
|
||||
class A() {
|
||||
|
||||
}
|
||||
|
||||
fun box() : Boolean {
|
||||
var a = 0
|
||||
when(A()) {
|
||||
is A -> a++;
|
||||
is A -> a++;
|
||||
else -> a++;
|
||||
}
|
||||
return (a == 1)
|
||||
}
|
||||
Reference in New Issue
Block a user