Files
sdk/tests/language_2/interface_injection2_test.dart
T
Kevin Millikin c3b7f29d46 Change a pair of negative tests to multitests
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>
2018-08-01 15:31:04 +00:00

16 lines
453 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 { }
class C { }
class C implements S; //# 1: syntax error
main() {
Expect.isFalse(new C() is S);
}