Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: test/rules/whitespace_around_ops.dart

Issue 2189993002: Remove `whitespace_around_ops` pending re-name and re-design (#249). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules/whitespace_around_ops.dart
diff --git a/test/rules/whitespace_around_ops.dart b/test/rules/whitespace_around_ops.dart
deleted file mode 100644
index c7346d6234d8578568e21f0838d48b6ba2decf86..0000000000000000000000000000000000000000
--- a/test/rules/whitespace_around_ops.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2016, 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 w/ `dart test/util/solo_test.dart whitespace_around_ops`
-
-
-// Define our own int so we don't need `int` in our mock SDK.
-class MyInt {
- MyInt operator -() => this;
- MyInt operator ~() => this;
- MyInt operator ~/(MyInt other) => this;
- MyInt operator /(MyInt other) => this;
-}
-
-void main() {
- MyInt f, g;
- print(f ~/ g);
- print(f~/ g); //LINT
- print(f ~/g); //LINT
- print(f~/g); //LINT
- print(f/ ~g); //LINT
- print(f /~g); //LINT
- print(f / ~g); //OK
- f =- g; //LINT
- f = -g; //OK
-}
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698