Don't throw exception on error types in light classes mode

#KT-26829 Fixed
 #KT-26827 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-09-17 12:56:54 +03:00
parent fa9a3868b7
commit ea69d26bac
4 changed files with 34 additions and 9 deletions
@@ -0,0 +1,6 @@
// PROBLEM: none
// ERROR: Modifier 'data' is incompatible with 'inline'
// ERROR: Modifier 'inline' is incompatible with 'data'
// ERROR: Unresolved reference: Unresolved
data inline class Foo(val x: <caret>Unresolved)
@@ -0,0 +1,5 @@
// WITH_RUNTIME
// PROBLEM: none
inline class Inline(val x1: UInt)
class WrapInline(<caret>val x2: Inline)
@@ -6178,6 +6178,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/unusedSymbol/companionViaImport.kt");
}
@TestMetadata("dataInlineClassDeclaration.kt")
public void testDataInlineClassDeclaration() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedSymbol/dataInlineClassDeclaration.kt");
}
@TestMetadata("inAnonymous.kt")
public void testInAnonymous() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedSymbol/inAnonymous.kt");
@@ -6198,6 +6203,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/unusedSymbol/internal.kt");
}
@TestMetadata("propertyOfInlineClassType.kt")
public void testPropertyOfInlineClassType() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedSymbol/propertyOfInlineClassType.kt");
}
@TestMetadata("withJvmNameUsedFromKotlin.kt")
public void testWithJvmNameUsedFromKotlin() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedSymbol/withJvmNameUsedFromKotlin.kt");