Supported negated is operation.

This commit is contained in:
Pavel Talanov
2011-11-17 14:17:17 +04:00
parent fec7539f8c
commit 57f5b2cc7d
2 changed files with 16 additions and 0 deletions
@@ -19,4 +19,9 @@ public class RTTITest extends AbstractClassTest {
testFooBoxIsTrue("isSameClass.kt");
}
@Test
public void notIsOtherClass() throws Exception {
testFooBoxIsTrue("notIsOtherClass.kt");
}
}
@@ -0,0 +1,11 @@
namespace foo
open class A() {
}
class B() : A() {
}
fun box() = (A() !is B)