| // Copyright (c) 2018, 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. |
| |
| // @dart = 2.7 |
| |
| class Class { |
| Class next; |
| } |
| |
| main() { |
| null1(null); |
| null2(null); |
| null3(null); |
| null4(null); |
| null5(null); |
| null6(null); |
| null7(null); |
| null8(null); |
| } |
| |
| null1(dynamic c) { |
| /*dynamic*/ c.next; |
| /*dynamic*/ c != null; |
| /*dynamic*/ c.next; |
| } |
| |
| null2(dynamic c) { |
| /*dynamic*/ c.next; |
| /*dynamic*/ c == null; |
| /*dynamic*/ c.next; |
| } |
| |
| null3(dynamic c) { |
| if (/*dynamic*/ c == null) return; |
| /*dynamic*/ c.next; |
| } |
| |
| null4(dynamic c) { |
| if (/*dynamic*/ c != null) return; |
| /*Null*/ c.next; |
| } |
| |
| null5(dynamic c) { |
| if (/*dynamic*/ c != null) { |
| /*dynamic*/ c.next; |
| } |
| } |
| |
| null6(dynamic c) { |
| if (/*dynamic*/ c == null) { |
| /*Null*/ c.next; |
| } |
| } |
| |
| null7(dynamic c) { |
| while (/*dynamic*/ c != null) { |
| /*dynamic*/ c.next; |
| } |
| } |
| |
| null8(dynamic c) { |
| while (/*dynamic*/ c == null) { |
| /*Null*/ c.next; |
| } |
| } |