-
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.
Report more errors on invalid explicit type instantiation function te…
…aroffs. When an expression which is not a type, not a constructor, and not an identifier for a function, is torn off with type arguments, report DISALLOWED_TYPE_INSTANTIATION_EXPRESSION. When a function expression (without a name) is explicitly torn off with the wrong number of type arguments, report WRONG_NUMBER_OF_TYPE_ARGUMENTS_ANONYMOUS_FUNCTION. This separate error code has text which does not have a slot for a function's name. Add resolution for implicit receiver super-type instance method tearoff. Bug: #46233 Change-Id: I3243e1824e191b6b703b1c995af5e1bd8a242915 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207140 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
- Loading branch information
Showing
6 changed files
with
346 additions
and
62 deletions.
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
Oops, something went wrong.