Skip to content

Commit 7bc2dc5

Browse files
committed
Parser: recover on missing interface members
1 parent c00299f commit 7bc2dc5

24 files changed

Lines changed: 149 additions & 0 deletions

src/Compiler/FSComp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,3 +1828,4 @@ featureErrorOnMissingSignatureAttribute,"error (rather than warning) when an enf
18281828
featureNotNullIfNotNull,"honor the 'NotNullIfNotNull' attribute on a method's return value"
18291829
featureAccessProtectedBaseFieldFromClosure,"Access a protected base-class field from a closure inside a member"
18301830
featureImprovedImpliedArgumentNamesPartTwo,"Improved implied argument names with partial application"
1831+
3892,parsExpectingMember,"Expecting member"

src/Compiler/pars.fsy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,12 @@ opt_interfaceImplDefn:
23112311

23122312
| WITH
23132313
{ let mWithKwd = rhs parseState 1
2314+
reportParseErrorAt mWithKwd (FSComp.SR.parsExpectingMember ())
2315+
Some(mWithKwd, [], mWithKwd) }
2316+
2317+
| OWITH recover
2318+
{ let mWithKwd = rhs parseState 1
2319+
reportParseErrorAt mWithKwd (FSComp.SR.parsExpectingMember ())
23142320
Some(mWithKwd, [], mWithKwd) }
23152321

23162322
| /* EMPTY */

src/Compiler/xlf/FSComp.txt.cs.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.de.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.es.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.fr.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.it.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.ja.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.ko.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compiler/xlf/FSComp.txt.pl.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)