Don't throw exception on error types in light classes mode
#KT-26829 Fixed #KT-26827 Fixed
This commit is contained in:
@@ -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)
|
||||
+10
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user