Skip to content
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

Fixes #2008. Split pattern_context_A01_t01.dart test to multiple methods #2015

Merged
merged 1 commit into from
Apr 7, 2023
Merged
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
27 changes: 26 additions & 1 deletion LanguageFeatures/Patterns/pattern_context_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,69 @@

import "patterns_lib.dart";

main() {
test1() {
var x1 || x1 = 42;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test2() {
final (int x2) || (int x2) = 42;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test3() {
var [x3, ...] || [x3, _] = [1, 2];
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test4() {
final {"key1": int x4} || {"key1": int x4} = {"key1": 1};
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test5() {
var (num x5, n: String x6) || (num x5, n: String x6) = (3.14, n: "pi");
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test6() {
final Square(:areaAsInt) || Square(:areaAsInt) = Square(2);
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test7() {
var (x6 || x6) = 42;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

test8() {
final ((int x7) || (int x7)) = 42;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}

main() {
test1();
test2();
test3();
test4();
test5();
test6();
test7();
test8();
}