blob: 2f83645823d730c68015775868f24223be092e7d [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
import 'dart:async';
import 'package:compiler/src/util/testing.dart';
/*class: global#Future:typeArgument*/
/*class: A:checkedInstance,checks=[],instance*/
class A<T> {}
/*class: B:checkedTypeArgument,typeArgument*/
class B {}
/*class: C:typeArgument*/
class C {}
@pragma('dart2js:noInline')
test(o) => o is A<FutureOr<B>>;
main() {
makeLive(test(new A<B>()));
makeLive(test(new A<Future<B>>()));
makeLive(test(new A<C>()));
makeLive(test(new A<Future<C>>()));
}