Chromium Code Reviews| 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 | |
|
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.
| |
| 5 #library('mirrors_helper'); | |
| 6 | |
| 7 typedef E Func<E,F extends Foo>(F f); | |
| 8 | |
| 9 main() { | |
| 10 | |
| 11 } | |
| 12 | |
| 13 class Foo { | |
| 14 | |
| 15 } | |
| 16 | |
| 17 interface Bar<E> { | |
| 18 | |
| 19 } | |
| 20 | |
| 21 class Baz<E,F extends Foo> implements Bar<E> { | |
| 22 Baz(); | |
| 23 const Baz.named(); | |
| 24 factory Baz.factory(); | |
| 25 | |
| 26 method1(e) {} | |
| 27 static void method2(E e, [F f = null]) {} | |
| 28 void method3(E func1(F f), Func<E,F> func2) {} | |
| 29 | |
| 30 bool operator==(Object other) => return false; | |
| 31 Baz<E,F> operator negate() => this; | |
| 32 } | |
| 33 | |
| 34 class Boz extends Foo { | |
| 35 var field1; | |
| 36 int _field2; | |
| 37 final String field3; | |
| 38 | |
| 39 int get field2() => _field2; | |
| 40 void set field2(int value) { | |
| 41 _field2 = value; | |
| 42 } | |
| 43 } | |
| 44 | |
| OLD | NEW |