c3b7f29d46
Negative tests are inflexible: they are expected to fail so they pass if they fail and the fail if they pass. This requires strange status file entries when they don't fail and aren't expected to (e.g., the front-end's parser or the spec parser does not necessarily fail (i.e., pass)). Change-Id: I1397b24fea63431472aa182f178bd14bc2afe8fe Reviewed-on: https://dart-review.googlesource.com/67802 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Kevin Millikin <kmillikin@google.com>
18 lines
497 B
Dart
18 lines
497 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.
|
|
|
|
// The removed language feature "interface injection" is now a syntax error.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
abstract class S { }
|
|
abstract class I { }
|
|
abstract class I implements S; //# 1: syntax error
|
|
|
|
class C implements I { }
|
|
|
|
main() {
|
|
Expect.isFalse(new C() is S);
|
|
}
|