Chromium Code Reviews| Index: tests/compiler/dart2js/mirrors_helper.dart |
| diff --git a/tests/compiler/dart2js/mirrors_helper.dart b/tests/compiler/dart2js/mirrors_helper.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a02afb0338a21a2127196b803a2f01b53a0d1053 |
| --- /dev/null |
| +++ b/tests/compiler/dart2js/mirrors_helper.dart |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2012, 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. |
| + |
| +#library('mirrors_helper'); |
| + |
| +typedef E Func<E,F extends Foo>(F f); |
| + |
| +main() { |
| + |
| +} |
| + |
| +class Foo { |
| + |
| +} |
| + |
| +interface Bar<E> { |
| + |
| +} |
| + |
| +class Baz<E,F extends Foo> implements Bar<E> { |
| + Baz(); |
| + const Baz.named(); |
| + factory Baz.factory(); |
| + |
| + method1(e) {} |
| + static void method2(E e, [F f = null]) {} |
| + void method3(E func1(F f), Func<E,F> func2) {} |
| + |
| + bool operator==(Object other) => return false; |
| + Baz<E,F> operator negate() => this; |
| +} |
|
gbracha
2012/06/30 01:27:32
Operator negate is going away. Is it necessary to
|
| + |
| +class Boz extends Foo { |
| + var field1; |
| + int _field2; |
| + final String field3; |
| + |
| + int get field2() => _field2; |
| + void set field2(int value) { |
| + _field2 = value; |
| + } |
| +} |
| + |