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 #1468. [Records]. Numerous typos fixed #1469

Merged
merged 1 commit into from
Sep 23, 2022
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/Records/record_expressions_A02_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ main() {
Expect.equals((2, 3), foo2());
Expect.equals(((3, n: 4), n2: "", true), foo3());
Expect.equals(("Hello", 1), bar(("Hello", 1,)));
Expect.equals((n1: "n1", n2: "n2"), bar((n1: "n1", n2: "n2",));
Expect.equals((n1: "n1", n2: "n2"), bar((n1: "n1", n2: "n2",)));
}
6 changes: 3 additions & 3 deletions LanguageFeatures/Records/record_type_annotations_A01_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import "../../Utils/expect.dart";

typedef (int, String name, bool) R1((int, String name, bool) r);
typedef (int i, String s, bool b) R2((int i, String s, bool b));
typedef (int i, String s, bool b) R2((int i, String s, bool b) r);
typedef (int, String, bool) R3({required (int, String, bool) r});
typedef ({int n, String s}) R4(({int n, String s}));
typedef (bool, num, {int n, String s}) R5((bool, num, {int n, String s}));
typedef ({int n, String s}) R4(({int n, String s}) r);
typedef (bool, num, {int n, String s}) R5((bool, num, {int n, String s}) r);

R1 r1 = ((int, String name, bool) r) => r;
R2 r2 = ((int i, String s, bool b) r) => r;
Expand Down
4 changes: 2 additions & 2 deletions LanguageFeatures/Records/record_type_annotations_A02_t09.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ typedef R2 = (@Meta() int i,{@Meta() String s});
typedef R3 = ({@Meta() int i, @Meta() String s});

typedef (@Meta() int i, {@Meta() String s}) R4();
typedef void R5((@Meta() int i, {@Meta() String s}));
typedef void R5((@Meta() int i, {@Meta() String s}) r);

(@Meta() int i, {@Meta() String s}) foo() => (42, s: "");

void bar((@Meta() int i, {@Meta() String s})) {}
void bar((@Meta() int i, {@Meta() String s}) r) {}

main() {
(@Meta() int i, @Meta() String s) r1 = (42, "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef R2 = (int? i,{String? s})?;
typedef R3 = ({int? i, String? s})?;

typedef (int? i, {String? s})? R4();
typedef void R5((int? i, {String? s})?);
typedef void R5((int? i, {String? s})? r);

(int? i, {String? s})? foo() => null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef R1 = (int i,);

typedef (int,) R2();

typedef void R3((String s,));
typedef void R3((String s,) r);

(int,) foo() => (42,);

Expand Down
4 changes: 2 additions & 2 deletions LanguageFeatures/Records/record_type_annotations_A04_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef R1 = (int i, String s,);

typedef (int, String s,) R2();

typedef void R3((String s, int,));
typedef void R3((String s, int,) r);

typedef R4 = (int i, {String s,});

Expand Down Expand Up @@ -72,5 +72,5 @@ main() {

d as (int, int j,);
d as (int, {int j,});
d as ({int, int j,});
d as ({int i, int j,});
}
4 changes: 2 additions & 2 deletions LanguageFeatures/Records/record_type_annotations_A04_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ typedef R1 = ({int i});

typedef ({int j}) R2();

typedef void R3(({String s}));
typedef void R3(({String s}) r);

({int i}) foo() => (i: 42);

void bar(({int i})) {}
void bar(({int i}) r) {}

main() {
({int j}) r1 = (j: 42);
Expand Down
4 changes: 2 additions & 2 deletions LanguageFeatures/Records/record_type_annotations_A05_t05.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ typedef (int hashCode, Type runtimeType, Function noSuchMethod,
String toString) R2();

typedef void R3((int hashCode, Type runtimeType, Function noSuchMethod,
String toString));
String toString) r);

(int? hashCode, Type? runtimeType, Function? noSuchMethod, String? toString)
foo() => (null, null, null, null);

void bar((int hashCode, Type runtimeType, Function noSuchMethod,
String toString)) {}
String toString) r) {}

main() {
(int? hashCode, Type? runtimeType, Function? noSuchMethod, String? toString)
Expand Down
4 changes: 2 additions & 2 deletions LanguageFeatures/Records/record_type_annotations_A06_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ typedef R1 = (int _i, {String s});

typedef (int _, {int n}) R2();

typedef void R3((String _s, {String s}));
typedef void R3((String _s, {String s}) r);

(int _, {int n}) foo() => (42, n: 0);

void bar((int _i, {bool b})) {}
void bar((int _i, {bool b}) r) {}

main() {
(int _, {String s}) r1 = (42, s: "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ typedef (int $0, {int i}) R3();

typedef (int, {int $1}) R4();

typedef void R5((String s, {String $1}));
typedef void R5((String s, {String $1}) r);

(int, {int $1})? foo1() => null;

Expand Down