| Index: tests/language/deferred_function_type_lib.dart
|
| diff --git a/tests/compiler/dart2js_extra/22487_test.dart b/tests/language/deferred_function_type_lib.dart
|
| similarity index 65%
|
| copy from tests/compiler/dart2js_extra/22487_test.dart
|
| copy to tests/language/deferred_function_type_lib.dart
|
| index 4bf5426b20e4dc4508044fb5aa0884afe5082e4a..1f0e610aac59572ef332c77ebb2d2acdac5ab189 100644
|
| --- a/tests/compiler/dart2js_extra/22487_test.dart
|
| +++ b/tests/language/deferred_function_type_lib.dart
|
| @@ -2,12 +2,19 @@
|
| // 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.
|
|
|
| -// Regression test for http://dartbug.com/22487
|
| -
|
| import 'package:expect/expect.dart';
|
|
|
| -divIsInt(a, b) => (a / b) is int;
|
| +class T {
|
| + A foo(int x) {}
|
| +}
|
| +
|
| +class A{}
|
| +
|
| +typedef A F(int x);
|
| +
|
| +use(x) => x;
|
|
|
| -main() {
|
| - Expect.isFalse((divIsInt)(10, 3));
|
| +runTest() {
|
| + use(new A());
|
| + Expect.isTrue(new T().foo is F);
|
| }
|
|
|