| 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
|
| + ;
|
| }
|
| -
|
|
|