7b76376438
Updated two tests from negative tests to multi-tests. Ensured the involved classes where actualy instantiated. Extended the test to use the bad class as a type argument as well. R=kustermann@google.com, ngeoffray@google.com BUG= Review URL: https://codereview.chromium.org//23537005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26862 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
507 B
Dart
19 lines
507 B
Dart
// Copyright (c) 2012, 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.
|
|
// Check fail because of cycles in super interface relationship.
|
|
|
|
class C implements B {}
|
|
|
|
class A implements B {}
|
|
|
|
class B
|
|
implements A /// 01: compile-time error
|
|
implements A /// 02: compile-time error
|
|
{}
|
|
|
|
main() {
|
|
new C(); /// 01: continued
|
|
new List<C>(); /// 02: continued
|
|
}
|