Adopt more tests for functions from codegen tests.

Create test for KT-2565.
This commit is contained in:
Pavel V. Talanov
2012-07-31 18:49:30 +04:00
parent 0710efdc16
commit b883bf6ef5
4 changed files with 101 additions and 0 deletions
@@ -166,6 +166,16 @@ public final class MiscTest extends AbstractExpressionTest {
checkOutput("lazyProperty.kt", "Hello, world! Gotcha 3");
}
public void testLocalVarAsFunction() throws Exception {
fooBoxIsValue("OK");
}
//TODO:see http://youtrack.jetbrains.com/issue/KT-2565
@SuppressWarnings("UnusedDeclaration")
public void TODO_testFunctionExpression() throws Exception {
fooBoxIsValue("OK");
}
public void testExclExclThrows() throws Exception {
try {
fooBoxTest();