Supported negated is operation.
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user