Skip to content

Commit

Permalink
#2559. Add missing augmented to operators tests (#2753)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov authored Jul 5, 2024
1 parent 6f063e7 commit 12503ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ augment library 'augmented_expression_A05_t21.dart';
import '../../Utils/expect.dart';

augment class C {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
void local() {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -34,7 +34,7 @@ augment class C {
}

augment mixin M {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
void local() {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -46,7 +46,7 @@ augment mixin M {

augment enum E {
augment e1;
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
void local() {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -57,7 +57,7 @@ augment enum E {
}

augment extension Ext {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
void local() {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ augment library 'augmented_expression_A05_t23.dart';
import '../../Utils/expect.dart';

augment class C {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
var f = () {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -34,7 +34,7 @@ augment class C {
}

augment mixin M {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
var f = () {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -46,7 +46,7 @@ augment mixin M {

augment enum E {
augment e1;
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
var f = () {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand All @@ -57,7 +57,7 @@ augment enum E {
}

augment extension Ext {
void operator []=(int index, Object? value) {
augment void operator []=(int index, Object? value) {
var f = () {
augmented[index] = value;
Expect.equals("Original [$index]=$value", _log);
Expand Down
2 changes: 1 addition & 1 deletion LanguageFeatures/Wildcards/other_declarations_A05_t45.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// SharedOptions=--enable-experiment=wildcard-variables

void topLevelFunction([int _]) {}
// ^
// ^
// [analyzer] unspecified
// [cfe] unspecified

Expand Down

0 comments on commit 12503ff

Please sign in to comment.