0163ef0d3b
Bug: #48087 Change-Id: I9729abea021945c66671f74805c4878aa04ade2a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227903 Reviewed-by: Stephen Adams <sra@google.com>
22 lines
540 B
Dart
22 lines
540 B
Dart
// 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 'package:compiler/src/util/testing.dart';
|
|
|
|
method1() {
|
|
/*spec.direct,explicit=[local.T*],needsArgs,needsSignature*/
|
|
/*prod.needsArgs,needsSignature*/
|
|
T local<T>(T t) => t;
|
|
return local;
|
|
}
|
|
|
|
@pragma('dart2js:noInline')
|
|
test(o) => o is S Function<S>(S);
|
|
|
|
main() {
|
|
makeLive(test(method1()));
|
|
}
|