Report error on expression of nullable type in class literal

#KT-15740 Fixed
This commit is contained in:
Alexander Udalov
2017-01-16 14:32:58 +03:00
parent 6a352a1da7
commit d02404b07b
10 changed files with 93 additions and 10 deletions
@@ -1818,6 +1818,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("expressionWithNullableType.kt")
public void testExpressionWithNullableType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/bound/expressionWithNullableType.kt");
doTest(fileName);
}
@TestMetadata("functionCallWithoutArguments.kt")
public void testFunctionCallWithoutArguments() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/bound/functionCallWithoutArguments.kt");
@@ -3022,6 +3028,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("expressionWithNullableType.kt")
public void testExpressionWithNullableType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/classLiteral/expressionWithNullableType.kt");
doTest(fileName);
}
@TestMetadata("genericArrays.kt")
public void testGenericArrays() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/classLiteral/genericArrays.kt");