Index: tests/compiler/dart2js/simple_inferrer_const_closure3_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_const_closure3_test.dart b/tests/compiler/dart2js/simple_inferrer_const_closure3_test.dart |
deleted file mode 100644 |
index dcc390989d0f51532e5681451c280333810281ba..0000000000000000000000000000000000000000 |
--- a/tests/compiler/dart2js/simple_inferrer_const_closure3_test.dart |
+++ /dev/null |
@@ -1,44 +0,0 @@ |
-// Copyright (c) 2014, 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'; |
-import "package:async_helper/async_helper.dart"; |
-import 'compiler_helper.dart'; |
- |
-const String TEST = """ |
- |
-method(a) { // Called only via [foo2] with a small integer. |
- return a; |
-} |
- |
-const foo = method; |
- |
-returnInt() { |
- return foo(54); |
-} |
- |
-main() { |
- returnInt(); |
-} |
-"""; |
- |
- |
-void main() { |
- Uri uri = new Uri(scheme: 'source'); |
- var compiler = compilerFor(TEST, uri); |
- asyncTest(() => compiler.runCompiler(uri).then((_) { |
- var typesInferrer = compiler.typesTask.typesInferrer; |
- |
- checkArgument(String functionName, String type) { |
- var functionElement = findElement(compiler, functionName); |
- var signature = functionElement.functionSignature; |
- var element = signature.requiredParameters.first; |
- Expect.equals(type, |
- typesInferrer.getTypeOfElement(element).simplify(compiler), |
- functionName); |
- } |
- |
- checkArgument('method', compiler.typesTask.uint31Type); |
- })); |
-} |