| Index: tests/language/unsupported_operators_test.dart
|
| diff --git a/tests/language/unsupported_operators_test.dart b/tests/language/unsupported_operators_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a80987f11e231a234fe43dfff5cf8fd2a4f4e929
|
| --- /dev/null
|
| +++ b/tests/language/unsupported_operators_test.dart
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2013, 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.
|
| +
|
| +// Test handling of unsupported operators.
|
| +
|
| +library unsupported_operators;
|
| +
|
| +class C {
|
| + m() {
|
| + print(
|
| + super === /// 01: compile-time error
|
| + null);
|
| + print(
|
| + super !== /// 02: compile-time error
|
| + null);
|
| + }
|
| +}
|
| +
|
| +void main() {
|
| + new C().m();
|
| + new C().m();
|
| + print(
|
| + "foo" === /// 03: compile-time error
|
| + null);
|
| + print(
|
| + "foo" !== /// 04: compile-time error
|
| + null);
|
| +}
|
|
|