1eda15854d
Experiments that have not be enabled by default should only be allowed in the current version of the sdk. Closes #45460 Change-Id: I159f390ac85fe37943920717ce11a4c817d5b4a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193480 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
91 lines
2.8 KiB
Plaintext
91 lines
2.8 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:6:12: Error: Operator '>>>' should have exactly one parameter.
|
|
// operator >>>() => true;
|
|
// ^^^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:10:12: Error: Operator '>>>' should have exactly one parameter.
|
|
// operator >>>(a, b) => true;
|
|
// ^^^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:14:17: Error: An operator can't have optional parameters.
|
|
// operator >>>([a]) => true;
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:18:17: Error: An operator can't have optional parameters.
|
|
// operator >>>({a}) => true;
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:22:12: Error: Operator '>>>' should have exactly one parameter.
|
|
// operator >>>(a, [b]) => true;
|
|
// ^^^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:26:12: Error: Operator '>>>' should have exactly one parameter.
|
|
// operator >>>(a, {b}) => true;
|
|
// ^^^
|
|
//
|
|
// pkg/front_end/testcases/triple_shift/invalid_operator.dart:30:16: Error: Types parameters aren't allowed when defining an operator.
|
|
// Try removing the type parameters.
|
|
// operator >>><T>(a) => true;
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Operators1 extends core::Object {
|
|
synthetic constructor •() → self::Operators1
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>() → dynamic
|
|
return true;
|
|
}
|
|
class Operators2 extends core::Object {
|
|
synthetic constructor •() → self::Operators2
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>(dynamic a, dynamic b) → dynamic
|
|
return true;
|
|
}
|
|
class Operators3 extends core::Object {
|
|
synthetic constructor •() → self::Operators3
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>([dynamic a = #C1]) → dynamic
|
|
return true;
|
|
}
|
|
class Operators4 extends core::Object {
|
|
synthetic constructor •() → self::Operators4
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>({dynamic a = #C1}) → dynamic
|
|
return true;
|
|
}
|
|
class Operators5 extends core::Object {
|
|
synthetic constructor •() → self::Operators5
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>(dynamic a, [dynamic b = #C1]) → dynamic
|
|
return true;
|
|
}
|
|
class Operators6 extends core::Object {
|
|
synthetic constructor •() → self::Operators6
|
|
: super core::Object::•()
|
|
;
|
|
operator >>>(dynamic a, {dynamic b = #C1}) → dynamic
|
|
return true;
|
|
}
|
|
class Operators7 extends core::Object {
|
|
synthetic constructor •() → self::Operators7
|
|
: super core::Object::•()
|
|
;
|
|
operator >>><T extends core::Object? = dynamic>(dynamic a) → dynamic
|
|
return true;
|
|
}
|
|
static method main() → dynamic {}
|
|
|
|
constants {
|
|
#C1 = null
|
|
}
|