Add test for smartcast
This commit is contained in:
committed by
Ilya Kirillov
parent
ffb907150a
commit
81f60bf252
@@ -0,0 +1,21 @@
|
||||
interface A {
|
||||
fun a()
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun b()
|
||||
}
|
||||
|
||||
interface C {
|
||||
fun c()
|
||||
}
|
||||
|
||||
fun take(a: A) {
|
||||
if (a is B && a is C) {
|
||||
a.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: a
|
||||
// EXIST: b
|
||||
// EXIST: c
|
||||
Reference in New Issue
Block a user