Skip to content

Conversation

@sgrekhov
Copy link
Contributor

Declaring-constructors/static_processing_A02_t*.dart and Declaring-constructors/static_processing_A03_t*.dart deleted. They updated copies were added to Primary-constructors earlier but these files were not deleted.

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except that a bunch of deleted files seem to tests that are still valid (in some cases, all of them, in other cases just some). Do we drop some coverage by deleting those tests, or are those tests already present in some other libraries?

print(M5);
print(M6);
print(M7);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So M1, M3, M4, M7 are still being tested, just in some other file?

print(M5);
print(M6);
print(M7);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same consideration, M1, M3 look like they're still valid.

print(C3);
print(C4);
print(C5);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All OK, also with the newest changes? Covered somewhere else?

main() {
print(E1);
print(E2);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK, too.

main() {
Expect.equals(1, ET1(1).v);
Expect.equals(2, ET2(2).v);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still OK?

main() {
Expect.equals(1, ET1(1).v);
Expect.equals(2, ET2(2).v);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK?

enum const E2.someName(final int v) {
e0(2);

const factory E2(int v) => E2.e0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can't be const because it has a body. Perhaps it was intended to be redirecting?

main() {
Expect.equals(1, E1.e0.v);
Expect.equals(2, E2.e0.v);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise OK?

/// the body.
///
/// @description Check that it is a compile-time error if the name of the
/// declaring constructor is the same as the name of some constructor declared
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'primary' rather than 'declaring'.

}

extension type ET4 {
this.someName(final int v);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is no good any more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So ET4 doesn't make sense any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants