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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 83453002: Change type of parameter with 'var' as modifier in initializing formals to the static type of the f… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 042e5c828608d2a7e55545fa0d626479c53560a0..2cd41d5153809374db69ca0f5538caf0100206ba 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1150,7 +1150,7 @@ class FieldParameterElementX extends VariableElementX
DartType computeType(Compiler compiler) {
VariableDefinitions definitions = variables.parseNode(compiler);
- if (definitions.type == null && !definitions.modifiers.isVar()) {
+ if (definitions.type == null) {
return fieldElement.computeType(compiler);
}
return super.computeType(compiler);
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698