85b4c604c5
Hide private class _Future and map it to core lib class Future. In Dart 2, show dynamic as type argument(s) of raw generic types. Change-Id: I70b0e1707bc767d04838ac12d16b3ad15623f51f Reviewed-on: https://dart-review.googlesource.com/48502 Reviewed-by: Siva Annamalai <asiva@google.com>
16 lines
427 B
Dart
16 lines
427 B
Dart
// Copyright (c) 2013, 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.
|
|
|
|
// Test for F-Bounded Quantification.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
class A<T extends B<T>> {}
|
|
|
|
class B<T> extends A {}
|
|
|
|
main() {
|
|
Expect.equals("B<B<dynamic>>", new B<B>().runtimeType.toString());
|
|
}
|