'val' in 'when' subject can't have modifiers (annotations are ok)
This commit is contained in:
@@ -22520,6 +22520,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/smartcastToEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("softModifierName.kt")
|
||||
public void testSoftModifierName() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/softModifierName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subjectVariableInIsPattern.kt")
|
||||
public void testSubjectVariableInIsPattern() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/subjectVariableInIsPattern.kt");
|
||||
|
||||
Generated
+5
@@ -22520,6 +22520,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/smartcastToEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("softModifierName.kt")
|
||||
public void testSoftModifierName() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/softModifierName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subjectVariableInIsPattern.kt")
|
||||
public void testSubjectVariableInIsPattern() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/subjectVariableInIsPattern.kt");
|
||||
|
||||
@@ -721,6 +721,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
|
||||
runTest("compiler/testData/psi/WhenWithSubjectVariable_ERR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WhenWithSubjectVariable_SoftModifierName.kt")
|
||||
public void testWhenWithSubjectVariable_SoftModifierName() throws Exception {
|
||||
runTest("compiler/testData/psi/WhenWithSubjectVariable_SoftModifierName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("When_ERR.kt")
|
||||
public void testWhen_ERR() throws Exception {
|
||||
runTest("compiler/testData/psi/When_ERR.kt");
|
||||
|
||||
Reference in New Issue
Block a user