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