// 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. // @dart=2.9 /*@testedFeatures=inference*/ library test; typedef V F(U u); class Foo { Bar get v1 => const /*@ typeArgs=Null */ Bar(); Bar> get v2 => const /*@ typeArgs=List* */ Bar(); Bar> get v3 => const /*@ typeArgs=(Object*) ->* Null */ Bar(); Bar, T>> get v4 => const /*@ typeArgs=((Null) ->* Object*) ->* Null */ Bar(); List get v5 => /*@ typeArgs=Null */ const []; List> get v6 => /*@ typeArgs=(Object*) ->* Null */ const []; Map get v7 => /*@ typeArgs=Null, Null */ const {}; Map, T> get v8 => /*@ typeArgs=(Object*) ->* Null, Null */ const {}; Map> get v9 => /*@ typeArgs=Null, (Object*) ->* Null */ const {}; } class Bar { const Bar(); } main() {}