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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: Created 3 years, 7 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: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
index fd7c515c1558a770065cd566f2ebf47feea6a330..39a350fd9b76352664853c398f4aec741e233c25 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
@@ -58,7 +58,7 @@ part of dart._runtime;
fn(closure, t) {
if (t == null) {
// No type arguments, it's all dynamic
- t = definiteFunctionType(JS('', '#', dynamic),
+ t = fnType(JS('', '#', dynamic),
JS('', 'Array(#.length).fill(#)', closure, dynamic), JS('', 'void 0'));
}
tag(closure, t);
@@ -111,7 +111,7 @@ _checkPrimitiveType(obj) {
getFunctionType(obj) {
// TODO(vsm): Encode this properly on the function for Dart-generated code.
var args = JS('', 'Array(#.length).fill(#)', obj, dynamic);
- return definiteFunctionType(bottom, args, JS('', 'void 0'));
+ return fnType(bottom, args, JS('', 'void 0'));
}
/// Returns the runtime representation of the type of obj.

Powered by Google App Engine
This is Rietveld 408576698