Skip to content

Fixes #3212. Fix the new roll failures. Add issues numbers #3213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LanguageFeatures/Enhanced-Enum/grammar_A10_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// static setter with the name `values=`, and its argument is not a supertype of
/// the generated member `values`.
/// @author [email protected]
/// @issue 48387
/// @issue 48387, 60821

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ extension type ET7(int id) {

extension type ET8(int id) {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
static void set id(int v) {}
// ^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// declares an instance setter with the same basename as the representation
/// variable but with a not compatible type
/// @author [email protected]
/// @issue 53489
/// @issue 53489, 58579

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// declares an instance setter with the same basename as the instance getter
/// but with an incompatible type
/// @author [email protected]
/// @issue 53489
/// @issue 53489, 58579

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// declares a static setter with the same basename as the static getter but
/// with an incompatible type
/// @author [email protected]
/// @issue 53489
/// @issue 53489, 58579

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/// @description Checks that an instance getter doesn't preclude an instance
/// setter and vice versa.
/// @author [email protected]
/// @issue 58579

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
///
/// @description Checks that a getter doesn't preclude a setter and vice versa.
/// @author [email protected]
/// @issue 58579

import '../../Utils/expect.dart';

Expand Down
2 changes: 0 additions & 2 deletions TypeSystem/flow-analysis/promotion_switch_A03_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,4 @@ main() {
test6(1);
test6("one");
test6(null);

test22("");
}
4 changes: 2 additions & 2 deletions TypeSystem/flow-analysis/promotion_switch_A04_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test3(Object? x) {
switch (x) {
case num v:
x.expectStaticType<Exactly<num>>();
case int _:
case int _: // ignore: unreachable_switch_case
x = 3.14;
x.expectStaticType<Exactly<num>>();
case _:
Expand All @@ -48,7 +48,7 @@ test3(Object? x) {
test4(Object? x) {
var y = switch (x) {
num _ => x.expectStaticType<Exactly<num>>(),
int v when (x = 3.14) > 0 => x.expectStaticType<Exactly<num>>(),
int v when (x = 3.14) > 0 => x.expectStaticType<Exactly<num>>(), // ignore: unreachable_switch_case
_ => x.expectStaticType<Exactly<Object?>>()
};
x.expectStaticType<Exactly<Object?>>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@
/// @author [email protected]
/// @issue 60677

main() {
test() {
late int i;
var x = switch (42) {
String _ => i = 42,
_ => 0
};
i; // Possibly assigned, see https://github.com/dart-lang/sdk/issues/60677
}

main() {
print(test);
}