blob: 53ae25d6f99095600b8fd8abe17718c3d0d13810 [file] [log] [blame]
// Copyright (c) 2018, 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
// This test checks that instantiate to bound provides type arguments to raw
// typedef types that are themselves used as type arguments in literal maps
// found in method bodies.
typedef A<T extends num>(T p);
class B {
foo() {
var a = <A, A>{};
main() {
var a = <A, A>{};