blob: f88db92deed96e0ad10edc8b664e374d6a072bd1 [file] [log] [blame]
// 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
library jsinterop;
/*class: global#JavaScriptObject:checks=[$isA,$isC],instance*/
import 'package:js/js.dart';
/*class: A:checkedInstance,checks=[],instance,onlyForRti*/
class A {
external A();
/*class: B:checks=[],instance,onlyForRti*/
class B {
external B();
/*class: C:checkedInstance,checks=[],instance,onlyForRti*/
class C {
external factory C();
/*class: D:checks=[],instance,onlyForRti*/
class D {
external factory D();
/*class: E:checks=[],instance*/
class E {
/*class: F:checks=[],instance*/
class F {
test(o) => o is A || o is C || o is E;
main() {
test(new A());
test(new B());
test(new C());
test(new D());
test(new E());
test(new F());