| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * This file is read by 'mirrors_test.dart'. |
| 7 */ |
| 8 |
| 9 #library('mirrors_helper'); |
| 10 |
| 11 typedef E Func<E,F extends Foo>(F f); |
| 12 |
| 13 main() { |
| 14 |
| 15 } |
| 16 |
| 17 class Foo { |
| 18 |
| 19 } |
| 20 |
| 21 interface Bar<E> { |
| 22 |
| 23 } |
| 24 |
| 25 class Baz<E,F extends Foo> implements Bar<E> { |
| 26 Baz(); |
| 27 const Baz.named(); |
| 28 factory Baz.factory(); |
| 29 |
| 30 method1(e) {} |
| 31 static void method2(E e, [F f = null]) {} |
| 32 void method3(E func1(F f), Func<E,F> func2) {} |
| 33 |
| 34 bool operator==(Object other) => return false; |
| 35 Baz<E,F> operator negate() => this; |
| 36 } |
| 37 |
| 38 class Boz extends Foo { |
| 39 var field1; |
| 40 int _field2; |
| 41 final String field3; |
| 42 |
| 43 int get field2() => _field2; |
| 44 void set field2(int value) { |
| 45 _field2 = value; |
| 46 } |
| 47 } |
| 48 |
| OLD | NEW |