| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; |
| 6 |
| 7 class Magnitude<T> { |
| 8 get t => T; |
| 9 } |
| 10 class Real extends Magnitude<Real> {} |
| 11 |
| 12 class FBound<F extends FBound<F>> { |
| 13 get f => F; |
| 14 } |
| 15 class Bar extends FBound<Bar> {} |
| 16 |
| 17 main() { |
| 18 var r = new Real(); |
| 19 Expect.equals(r.runtimeType, Real); |
| 20 Expect.equals(r.t, Real); |
| 21 Expect.equals(r.runtimeType, r.t); |
| 22 |
| 23 var b = new Bar(); |
| 24 Expect.equals(b.runtimeType, Bar); |
| 25 Expect.equals(b.f, Bar); |
| 26 Expect.equals(b.runtimeType, b.f); |
| 27 } |
| OLD | NEW |