blob: 83e91de1aeffe59b82122bd0be19691a0262d9e1 [file] [log] [blame]
// Copyright (c) 2025, 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.
import 'dart:js_interop';
class A<B> {
void foo() {
if (null is! B) {
print('');
}
}
}
void main() {
JSAny? jsValue;
if (jsValue.isA<JSString>()) {
print(jsValue);
} else if (jsValue.isA<JSArray>()) {
print(jsValue);
}
Object? dartObject;
if (dartObject case {'foo': final String foo}) {
print(foo);
}
}