KT-13422 Type alias for Java exception class can be used as an object in 'throw' expression

Report NO_COMPANION_OBJECT for type aliases.
This commit is contained in:
Dmitry Petrov
2016-09-01 15:02:05 +03:00
parent c7f87e655c
commit 6428a7655d
4 changed files with 24 additions and 0 deletions
@@ -20244,6 +20244,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("throwJLException.kt")
public void testThrowJLException() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/throwJLException.kt");
doTest(fileName);
}
@TestMetadata("typeAliasArgumentsInCompanionObject.kt")
public void testTypeAliasArgumentsInCompanionObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasArgumentsInCompanionObject.kt");