Skip to content

Commit

Permalink
Fix language_2/compile_time_constant_static5_test
Browse files Browse the repository at this point in the history
Change-Id: Ice89ef6c38f93a94be41cece77804f6b04569534
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115778
Auto-Submit: Mayank Patke <fishythefish@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
  • Loading branch information
fishythefish authored and commit-bot@chromium.org committed Sep 6, 2019
1 parent e34d71f commit f5b5327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/language_2/compile_time_constant_static5_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Test2<U, V> {

// Will be instantiated with U=A and V=B.
class Test3<U extends A, V extends B> {
final U x = const A(); //# 11: ok
final U x = const A(); //# 11: compile-time error
final U x = const B(); //# 12: compile-time error
final V x = const A(); //# 13: compile-time error
final V x = const C(); //# 14: compile-time error
Expand All @@ -50,7 +50,7 @@ class Test3<U extends A, V extends B> {

// Will be instantiated with U=A and V=B.
class Test4<U extends A, V extends A> {
final U x = const A(); //# 16: ok
final U x = const A(); //# 16: compile-time error
final U x = const B(); //# 17: compile-time error
final V x = const A(); //# 18: compile-time error
final V x = const C(); //# 19: compile-time error
Expand All @@ -60,9 +60,9 @@ class Test4<U extends A, V extends A> {

// Will be instantiated with U=dynamic and V=dynamic.
class Test5<U extends A, V extends B> {
final U x = const A(); //# 21: ok
final U x = const A(); //# 21: compile-time error
final U x = const B(); //# 22: compile-time error
final V x = const A(); //# 23: ok
final V x = const A(); //# 23: compile-time error
final V x = const C(); //# 24: compile-time error
final V x = const C.d(); //# 25: compile-time error
const Test5();
Expand Down

0 comments on commit f5b5327

Please sign in to comment.