// Copyright (c) 2016, 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. import "package:expect/expect.dart"; abstract class S> { m() => 123; get S_T => T; } class C> extends S> { m() => 456; get C_T => T; } class D extends C {} main() { regress31434(); Expect.equals(new C().m(), 456); Expect.equals(new C().C_T, D); Expect.equals(new C().S_T.toString(), 'C'); } class F {} class E extends F, R> {} regress31434() { type() => T; dynamic e = new E(); Expect.equals(e.runtimeType, type>()); }