casts supported

This commit is contained in:
Andrey Breslav
2011-03-16 16:22:35 +03:00
parent fb71f83964
commit 4dec2ce60f
3 changed files with 62 additions and 53 deletions
@@ -398,6 +398,10 @@ public class JetTypeCheckerTest extends LightDaemonAnalyzerTestCase {
assertType("\"1\".plus('1')", "String");
}
public void testBinaryOperations() throws Exception {
assertType("1 as Any", "Any");
}
private void assertSubtype(String type1, String type2) {
assertSubtypingRelation(type1, type2, true);
}