Skip to content

Commit

Permalink
dart-lang#2641. Wildcards. Update expected errors positions for CFE
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed May 17, 2024
1 parent ce52bad commit 7090a70
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions LanguageFeatures/Wildcards/other_declarations_A05_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class C3 {

class C4 {
static int _ = 1;
// ^
// [cfe] unspecified
static void set _(int v) {}
// ^
// [analyzer] unspecified
Expand Down Expand Up @@ -154,6 +156,7 @@ class C8 {
static int _ = 1;
// ^
// [analyzer] unspecified
// [cfe] unspecified
void set _(int v) {}
// ^
// [cfe] unspecified
Expand Down
3 changes: 1 addition & 2 deletions LanguageFeatures/Wildcards/other_declarations_A05_t07.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ class C8 {
static int get _ => 1;
// ^
// [analyzer] unspecified
void set _(int v) {}
// ^
// [cfe] unspecified
void set _(int v) {}
}

class C8Extends extends ContainsWildcardSetter {
Expand Down
3 changes: 1 addition & 2 deletions LanguageFeatures/Wildcards/other_declarations_A05_t08.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ class C8 {
static int _() => 1;
// ^
// [analyzer] unspecified
void set _(int v) {}
// ^
// [cfe] unspecified
void set _(int v) {}
}

class C8Extends extends ContainsWildcardSetter {
Expand Down
9 changes: 5 additions & 4 deletions LanguageFeatures/Wildcards/other_declarations_A05_t09.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ mixin class ContainsWildcardSetter {

class C1 {
static void set _(int v) {}
// ^
// [cfe] unspecified
static int _ = 1;
// ^
// [analyzer] unspecified
Expand Down Expand Up @@ -61,6 +63,7 @@ class C5 {
static void set _(int v) {}
// ^
// [analyzer] unspecified
// [cfe] unspecified
int _ = 5;
// ^
// [cfe] unspecified
Expand Down Expand Up @@ -91,9 +94,8 @@ class C6 {
static void set _(int v) {}
// ^
// [analyzer] unspecified
int _() => 6;
// ^
// [cfe] unspecified
int _() => 6;
}

class C6Extends extends ContainsWildcardMethod {
Expand Down Expand Up @@ -121,9 +123,8 @@ class C7 {
static void set _(int v) {}
// ^
// [analyzer] unspecified
int get _ => 7;
// ^
// [cfe] unspecified
int get _ => 7;
}

class C7Extends extends ContainsWildcardGetter {
Expand Down
2 changes: 2 additions & 0 deletions LanguageFeatures/Wildcards/other_declarations_A05_t10.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class C3With with ContainsWildcardGetter {

class C4 {
int _ = 1;
// ^
// [cfe] unspecified
void set _(int v) {}
// ^
// [analyzer] unspecified
Expand Down
2 changes: 2 additions & 0 deletions LanguageFeatures/Wildcards/other_declarations_A05_t13.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ mixin class ContainsWildcardSetter {

class C1 {
void set _(int v) {}
// ^
// [cfe] unspecified
int _ = 5;
// ^
// [analyzer] unspecified
Expand Down

0 comments on commit 7090a70

Please sign in to comment.