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..3cf5658f08e40bb5a174de9df7eba2459b18a134 |
| --- /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. |
| + |
|
Lasse Reichstein Nielsen
2012/07/02 11:48:53
Add a comment to say that this file is read from a
Johnni Winther
2012/07/03 07:38:50
Done.
|
| +#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; |
| +} |
| + |
| +class Boz extends Foo { |
| + var field1; |
| + int _field2; |
| + final String field3; |
| + |
| + int get field2() => _field2; |
| + void set field2(int value) { |
| + _field2 = value; |
| + } |
| +} |
| + |