blob: bac8aeab12608e451a1949d1700c2370c2f0ab05 [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 type inference uses type arguments provided by
// instantiate to bound in type annotations to infer the type arguments of the
// corresponding constructor invocations.
class A<T extends num> {}
main() {
A a = new A();