Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: tests/language_strong/covariant_override/runtime_check_test.dart

Issue 2641543003: Use "Object" as the reified type of covariant override parameters. (Closed)
Patch Set: Format. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'package:meta/meta.dart' show checked; 6 import 'package:meta/meta.dart' show checked;
7 7
8 // Test runtime behavior of @checked 8 // Test runtime behavior of @checked
9 9
10 class View { 10 class View {
(...skipping 16 matching lines...) Expand all
27 27
28 // TODO(jmesserly): these *should* be a cast failures, but DDC is currently 28 // TODO(jmesserly): these *should* be a cast failures, but DDC is currently
29 // ignoring function type failures w/ a warning at the console... 29 // ignoring function type failures w/ a warning at the console...
30 30
31 // * -> * not a subtype of Object -> MyView 31 // * -> * not a subtype of Object -> MyView
32 // Expect.throws(() => mv.transform((_) => mv)); 32 // Expect.throws(() => mv.transform((_) => mv));
33 33
34 // View -> View not a subtype of Object -> MyView 34 // View -> View not a subtype of Object -> MyView
35 // Expect.throws(() => mv.transform((View x) => x)); 35 // Expect.throws(() => mv.transform((View x) => x));
36 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698