blob: 2a572957291238ca772c91a891a3e7f599a56386 [file] [log] [blame]
// Copyright (c) 2019, 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.
class Foo {}
var _a;
foo() {
if (!(_a is Foo)) {} // LINT
var _exp = !(_a is Foo); // LINT
if (_a is! Foo) {} // OK
var _exp1 = _a is! Foo; // OK
}