is, ===, !==, &&, ||

This commit is contained in:
Andrey Breslav
2011-03-16 16:52:39 +03:00
parent 4dec2ce60f
commit 69d2c27e4f
5 changed files with 57 additions and 4 deletions
@@ -400,6 +400,11 @@ public class JetTypeCheckerTest extends LightDaemonAnalyzerTestCase {
public void testBinaryOperations() throws Exception {
assertType("1 as Any", "Any");
assertType("1 is Char", "Boolean");
assertType("1 === null", "Boolean");
assertType("1 !== null", "Boolean");
assertType("true && false", "Boolean");
assertType("true || false", "Boolean");
}
private void assertSubtype(String type1, String type2) {