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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 23680015: Fix bug in inferrer: a super constructor call goes through the visitSuperSend in the resolved visit… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « no previous file | tests/language/inference_super_constructor_call_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 27195)
+++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
@@ -2047,7 +2047,7 @@
isThisExposed = true;
if (node.isPropertyAccess) {
return handleStaticSend(node, selector, element, null);
- } else if (element.isFunction()) {
+ } else if (element.isFunction() || element.isGenerativeConstructor()) {
if (!selector.applies(element, compiler)) return types.dynamicType;
ArgumentsTypes arguments = analyzeArguments(node.arguments);
return handleStaticSend(node, selector, element, arguments);
« no previous file with comments | « no previous file | tests/language/inference_super_constructor_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698