blob: 1756332e98b4435a4dfc5d9a219a3bad03d7a9c6 [file] [log] [blame] [edit]
// Copyright (c) 2017, 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.
library test;
typedef V F<U, V>(U u);
class Foo<T> {
Bar<T> get v1 => new Bar();
Bar<List<T>> get v2 => new Bar();
Bar<F<T, T>> get v3 => new Bar();
Bar<F<F<T, T>, T>> get v4 => new Bar();
List<T> get v5 => [];
List<F<T, T>> get v6 => [];
Map<T, T> get v7 => {};
Map<F<T, T>, T> get v8 => {};
Map<T, F<T, T>> get v9 => {};
}
class Bar<T> {
const Bar();
}
main() {}