// Copyright (c) 2014, 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. class S0 {} class S extends S0 {} class M {} class A extends S with M {} // A StaticWarning is reported here and in C, D, and E below, because U and V // are not bounded. The purpose of this test is to verify bound checking in S, // M, and A, the reason no bounds are declared for U and V here. class B extends S with M {} //# 04: continued class B extends S with M {} //# 05: continued class B extends S with M {} //# 06: continued class C extends S with M {} //# 07: continued class C extends S with M {} //# 08: continued class C extends S with M {} //# 09: continued class D extends S with M {} //# 10: continued class D extends S with M {} //# 11: continued class D extends S with M {} //# 12: continued class E extends S with M {} //# 13: continued class E extends S with M {} //# 14: continued class E extends S with M {} //# 15: continued main() { new A(); // //# 01: ok new A(); // //# 02: compile-time error new A(); // //# 03: compile-time error new B(); // //# 04: compile-time error new B(); // //# 05: compile-time error new B(); // //# 06: compile-time error new C(); // //# 07: compile-time error new C(); // //# 08: compile-time error new C(); // //# 09: compile-time error new D(); // //# 10: compile-time error new D(); // //# 11: compile-time error new D(); // //# 12: compile-time error new E(); // //# 13: compile-time error new E(); // //# 14: compile-time error new E(); // //# 15: compile-time error }