-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error on impl functions prior to extends base
Since impl will need to be checked against the base class's virtual functions, and on the basis of the information accumulation principle (I think?). This does produce an awkward sequence of diagnostics "can't have impl without a base class" then "can't have base class after an impl". I guess we'd prefer to only have the latter? Could defer the "impl without base" until the end of the class to implement that correctly? Oh, and currently this will only produce one of "base must come before fields" or "base must come before impls" - I guess it'd be preferable to produce both?
- Loading branch information
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters