Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart b/tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart
index ce1cc2cc09ffc6dfe172fcc2bf35ec9f7979a7a9..cd1f33dc35c43d4f41373c8766a9606a0b2f3c28 100644
--- a/tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart
@@ -46,7 +46,7 @@ void main() {
var closedWorld = typesInferrer.closedWorld;
checkArgument(String functionName, type) {
- var functionElement = findElement(compiler, functionName);
+ dynamic functionElement = findElement(compiler, functionName);
var signature = functionElement.functionSignature;
var element = signature.requiredParameterCount > 0
? signature.requiredParameters.first
@@ -57,16 +57,6 @@ void main() {
functionName);
}
- checkOptionalArgument(String functionName, type) {
- var functionElement = findElement(compiler, functionName);
- var signature = functionElement.functionSignature;
- var element = signature.optionalParameters.first;
- Expect.equals(
- type,
- simplify(typesInferrer.getTypeOfElement(element), closedWorld),
- functionName);
- }
-
checkArgument('foo1', closedWorld.commonMasks.functionType);
/// 01: ok
« no previous file with comments | « tests/compiler/dart2js/serialization/test_helper.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698