mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:59:47 +00:00
Fix language/operator/invalid_operators_test
Closes #40415 Change-Id: If179bc6802e6193aea4c011d889f9ecbfa3020b0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133993 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
parent
5af05598eb
commit
8991dc33d2
|
@ -161,9 +161,10 @@ class Operators2 {
|
|||
}
|
||||
|
||||
class Operators3 {
|
||||
operator ==([a]) => true;
|
||||
operator ==([dynamic a]) => true;
|
||||
// ^
|
||||
// [analyzer] COMPILE_TIME_ERROR.OPTIONAL_PARAMETER_IN_OPERATOR
|
||||
// ^
|
||||
// [cfe] An operator can't have optional parameters.
|
||||
operator <([a]) => true;
|
||||
// ^
|
||||
|
|
Loading…
Reference in a new issue