OLD | NEW |
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 Loading... |
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 {} |
OLD | NEW |