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

Unified Diff: tests/lib_strong/html/js_typed_interop_test.dart

Issue 2456803004: fixes #27586, prefer context type in generic inference (Closed)
Patch Set: fix Created 3 years, 9 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 | « tests/lib_strong/html/event_customevent_test.dart ('k') | tests/lib_strong/html/typing_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib_strong/html/js_typed_interop_test.dart
diff --git a/tests/lib_strong/html/js_typed_interop_test.dart b/tests/lib_strong/html/js_typed_interop_test.dart
index cae4b6faef044cc14cff0f461f88497552dc73be..1f8bd06f25e02f246ea9ec39d8ef58cc57e8fef4 100644
--- a/tests/lib_strong/html/js_typed_interop_test.dart
+++ b/tests/lib_strong/html/js_typed_interop_test.dart
@@ -316,8 +316,9 @@ main() {
test('call from js', () {
localClosure(x) => x * 10;
var wrappedLocalClosure = allowInterop(localClosure);
+ var wrappedLocalClosure2 = allowInterop(localClosure);
expect(
- identical(allowInterop(localClosure), wrappedLocalClosure), isTrue);
+ identical(wrappedLocalClosure2, wrappedLocalClosure), isTrue);
expect(foo.callClosureWithArg1(wrappedLocalClosure, 10), equals(100));
expect(foo.callClosureWithArg1(wrappedLocalClosure, "a"),
equals("aaaaaaaaaa"));
« no previous file with comments | « tests/lib_strong/html/event_customevent_test.dart ('k') | tests/lib_strong/html/typing_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698