blob: 14d539bf8a30e7a31a689cb3b10c169905783cd4 [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.
/*strong.class: global#JSArray:checkedInstance,checks=[$isIterable],instance*/
/*omit.class: global#JSArray:checkedInstance,checks=[$isIterable],instance*/
/*class: global#Iterable:checkedInstance*/
/*strong.class: A:checkedTypeArgument,checks=[],typeArgument*/
/*omit.class: A:checkedTypeArgument,checks=[],typeArgument*/
class A {}
/*strong.class: B:checks=[],typeArgument*/
/*omit.class: B:checks=[],typeArgument*/
class B {}
@pragma('dart2js:noInline')
test(o) => o is Iterable<A>;
main() {
test(<A>[]);
test(<B>[]);
}