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

Unified Diff: test/codegen/covariance.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/covariance.dart
diff --git a/test/codegen/covariance.dart b/test/codegen/covariance.dart
deleted file mode 100644
index 89c27615a523fedc6f4e536c89e221892b84b070..0000000000000000000000000000000000000000
--- a/test/codegen/covariance.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class Foo<T> {
- T _t;
- add(T t) {
- _t = t;
- }
-
- forEach(void fn(T t)) {
- // No check needed for `fn`
- fn(_t);
- }
-}
-
-class Bar extends Foo<int> {
- add(int x) {
- print('Bar.add got $x');
- super.add(x);
- }
-}
-
-main() {
- Foo<Object> foo = new Bar();
- foo.add('hi'); // should throw
-}
« no previous file with comments | « test/codegen/corelib/string_operations_with_null_test.dart~ ('k') | test/codegen/expect/8invalid-chars.in+file_name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698