-
Notifications
You must be signed in to change notification settings - Fork 87
Conversation
Clean up test/wrapper_test.dart signficantly. Add enough type annotations to test/unmodifiable_collection_test.dart to get the necessary inference. Update dependency on SDK to allow using the new `Invocation` constructor.
void testNoWriteList(List original, List wrapped, String name) { | ||
List copy = new List.from(original); | ||
void testNoWriteList(List<int> original, List<int> wrapped, String name) { | ||
var copy = new List<int>.from(original); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use .of()
here and below to avoid the explicit annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems so. Good catch. Changed all .from
to .of
, just for good measure.
test/wrapper_test.dart
Outdated
List<Type> get typeArguments => const <Type>[]; | ||
|
||
bool get isMethod => _type == METHOD; | ||
// Parameterization of noSuchMethod. Calles [_action] on every |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Calles" -> "Calls"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fix two tests to be Dart 2 type-safe. Clean up test/wrapper_test.dart signficantly. Add enough type annotations to test/unmodifiable_collection_test.dart to get the necessary inference. Update dependency on SDK to allow using the new `Invocation` constructor.
Fix two tests to be Dart 2 type-safe.
Clean up test/wrapper_test.dart signficantly.
Add enough type annotations to test/unmodifiable_collection_test.dart to get the necessary inference.
Update dependency on SDK to allow using the new
Invocation
constructor.Another partial fix of dart-lang/core#591.