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

Unified Diff: tests/language/malformed_bound_test.dart

Issue 268363017: Treat malformed bound as dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/malformed_bound_test.dart
diff --git a/tests/language/disassemble_test.dart b/tests/language/malformed_bound_test.dart
similarity index 52%
copy from tests/language/disassemble_test.dart
copy to tests/language/malformed_bound_test.dart
index 8e532247e8e74e62973be3dc0e5ade64cb65386b..7141cf2daa3372e28bde85af4e8a97fb1f30e6fd 100644
--- a/tests/language/disassemble_test.dart
+++ b/tests/language/malformed_bound_test.dart
@@ -1,17 +1,17 @@
// Copyright (c) 2014, 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.
-// Dart test program for testing isolate communication with
-// typed objects.
-// VMOptions=--disassemble
-// Tests proper object recognition in disassembler.
+// Test that a malformed type variable bound is treated as dynamic.
-f(x) {
- return "foo";
+class C<T
+ extends Malformed /// 01: static type warning, runtime error
+> {
+ f(T t) => t.foo;
}
main() {
- print(f(0));
+ new C<int>()
+ .f(1) /// 01: continued
+ ;
}
-
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698