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

Unified Diff: test/checker/checker_test.dart

Issue 1171713002: remove ClosureWrap option and related implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« no previous file with comments | « lib/src/testing.dart ('k') | test/checker/inferred_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/checker_test.dart
diff --git a/test/checker/checker_test.dart b/test/checker/checker_test.dart
index 61eae22694d95d8e3eaeb8b8c8113d62399f718f..4dcc0dff85b4a31cf62171fb4de62e7ee9948689 100644
--- a/test/checker/checker_test.dart
+++ b/test/checker/checker_test.dart
@@ -1071,25 +1071,6 @@ void main() {
});
});
- test('Closure wrapping of literals', () {
- testChecker({
- '/main.dart': '''
- typedef T F<T>(T t1, T t2);
- typedef dynamic D(t1, t2);
-
- void main() {
- F f1 = (x, y) => /*info:DynamicInvoke*/x + y;
- F<int> f2 = /*warning:ClosureWrapLiteral*/(x, y) => /*info:DynamicInvoke*/x + y;
- D f3 = (x, y) => /*info:DynamicInvoke*/x + y;
- Function f4 = (x, y) => /*info:DynamicInvoke*/x + y;
- f2 = /*warning:ClosureWrap*/f1;
- f1 = (int x, int y) => x + y;
- f2 = /*severe:StaticTypeError*/(int x) => -x;
- }
- '''
- }, wrapClosures: true, inferDownwards: false);
- });
-
test('Generic subtyping: invariance', () {
testChecker({
'/main.dart': '''
« no previous file with comments | « lib/src/testing.dart ('k') | test/checker/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698