Add recovery for value parameter without type or name
The case for KT-7237 belongs to /NoGTInTypeArguments test It was fixed implicitly: before it recovery was working but the name for the next parameter was attached to type argument list. After that change, parameter without name gets parsed correctly (with an error of course) ^KT-13731 Fixed ^KT-7237 Fixed
This commit is contained in:
@@ -2148,6 +2148,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
|
||||
runTest("compiler/testData/psi/recovery/NoArrowInWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoGTInTypeArguments.kt")
|
||||
public void testNoGTInTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/NoGTInTypeArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageNewLineRecovery.kt")
|
||||
public void testPackageNewLineRecovery() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/PackageNewLineRecovery.kt");
|
||||
@@ -2183,6 +2188,16 @@ public class ParsingTestGenerated extends AbstractParsingTest {
|
||||
runTest("compiler/testData/psi/recovery/ValueParameterNoTypeRecovery.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueParameterRecovery.kt")
|
||||
public void testValueParameterRecovery() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/valueParameterRecovery.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueParameterRecoveryWithTypes.kt")
|
||||
public void testValueParameterRecoveryWithTypes() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/valueParameterRecoveryWithTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WhenWithoutBraces.kt")
|
||||
public void testWhenWithoutBraces() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/WhenWithoutBraces.kt");
|
||||
|
||||
Reference in New Issue
Block a user