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

Side by Side Diff: test/rules/unrelated_type_equality_checks.dart

Issue 1972183002: Linter version 0.1.16 bump [TBR]. (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « test/rules/dont_compare_unrelated_types_for_equality.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // test w/ `dart test/util/solo_test.dart dont_compare_unrelated_types_for_equal ity` 5 // test w/ `dart test/util/solo_test.dart unrelated_type_equality_checks`
6 6
7 void someFunction() { 7 void someFunction() {
8 var x = '1'; 8 var x = '1';
9 if (x == 1) print('someFunction'); // LINT 9 if (x == 1) print('someFunction'); // LINT
10 } 10 }
11 11
12 void someFunction1() { 12 void someFunction1() {
13 String x = '1'; 13 String x = '1';
14 if (x == 1) print('someFunction1'); // LINT 14 if (x == 1) print('someFunction1'); // LINT
15 } 15 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 abstract class Mixin {} 103 abstract class Mixin {}
104 104
105 class DerivedClass2 extends ClassBase with Mixin {} 105 class DerivedClass2 extends ClassBase with Mixin {}
106 106
107 class DerivedClass3 extends ClassBase implements Mixin {} 107 class DerivedClass3 extends ClassBase implements Mixin {}
108 108
109 class DerivedClass4 extends DerivedClass2 {} 109 class DerivedClass4 extends DerivedClass2 {}
110 110
111 class DerivedClass5 extends DerivedClass3 {} 111 class DerivedClass5 extends DerivedClass3 {}
OLDNEW
« no previous file with comments | « test/rules/dont_compare_unrelated_types_for_equality.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698