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:
Johnni Winther 2020-02-03 13:35:15 +00:00 committed by commit-bot@chromium.org
parent 5af05598eb
commit 8991dc33d2

View file

@ -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;
// ^