// 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. // // Dart test program testing generic type allocations and generic type tests. // Regression test for issue 8710. class C1 {} class C2 {} class C3 extends C2> {} class C4 extends C3 { f() => new C5>(new C1()); } class C5 { C5(T x); } // Checked mode: x must be of type C1. main() { new C4().f(); }