blob: 3b1ae5d4de03080e91c6fb33b16adcccc502c0d9 [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.
import 'package:expect/expect.dart';
/*strong.class: C:checkedInstance,checks=[],instance,typeArgument*/
/*omit.class: C:checks=[],instance,typeArgument*/
class C {
call(int i) {}
}
/*strong.class: D:checkedInstance,checks=[],instance,typeArgument*/
/*omit.class: D:checks=[],instance,typeArgument*/
class D {
call(double i) {}
}
@pragma('dart2js:noInline')
test1(o) => o is Function(int);
@pragma('dart2js:noInline')
test2(o) => o is List<Function(int)>;
main() {
Expect.isFalse(test1(new C()));
Expect.isFalse(test1(new D()));
Expect.isFalse(test2(<C>[]));
Expect.isFalse(test2(<D>[]));
}