'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");
|
||||
|
||||
Reference in New Issue
Block a user