Add default values for optional parameters in const/constructor2_test

Change-Id: Ibf8066d7c4eb5c047a6423efb4529ac9fa620459
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142403
Reviewed-by: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
Konstantin Shcheglov
2020-04-03 21:44:06 +00:00
parent a0f356b1f2
commit 90574ee9fd
+2 -2
View File
@@ -16,8 +16,8 @@ class C<U> {
final A<U> a;
const C(A<U> this.a);
const C.optional([A<U> this.a]);
const C.named({A<U> this.a});
const C.optional([A<U> this.a = const A()]);
const C.named({A<U> this.a = const A()});
const C.untyped(this.a);
const C.subtyped(B<U> this.a);
const factory C.redirecting(B<U> a) = D<U>;