Fix for KT-12891: Allow to omit type in local delegated property declaration

#KT-12891 Fixed
This commit is contained in:
Michael Bogdanov
2016-07-05 17:18:46 +03:00
parent 191dfa1f2b
commit 6b8e8cee17
7 changed files with 80 additions and 6 deletions
@@ -71,6 +71,12 @@ public class ScriptCodegenTestGenerated extends AbstractScriptCodegenTest {
doTest(fileName);
}
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
doTest(fileName);
}
@TestMetadata("localFunction.kts")
public void testLocalFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/script/localFunction.kts");