KT-1361: "this" is not treated correctly when object is created.

This commit is contained in:
pTalanov
2012-03-13 14:30:26 +04:00
parent 50a42a2f07
commit 15437cbbf6
5 changed files with 113 additions and 5 deletions
@@ -73,6 +73,14 @@ public final class MiscTest extends AbstractExpressionTest {
checkFooBoxIsOk("KT-740-2.kt");
}
public void testKt1361_1() throws Exception {
checkFooBoxIsTrue("KT-1361-1.kt");
}
public void testKt1361_2() throws Exception {
checkFooBoxIsTrue("KT-1361-2.kt");
}
//TODO: depends on KT-1198
//TODO: look into BindingContext.VARIABLE_REASSIGNMENT
// public void testKt740_3() throws Exception {