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

Issue 10434005: Disallow repeated formal parameters (issue 2240). (Closed)

Created:
8 years, 7 months ago by regis
Modified:
8 years, 7 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Disallow repeated formal parameters (issue 2240). Committed: https://code.google.com/p/dart/source/detail?r=7925

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M runtime/vm/parser.cc View 1 chunk +10 lines, -0 lines 1 comment Download
M tests/co19/co19-runtime.status View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
regis
8 years, 7 months ago (2012-05-23 21:30:00 UTC) #1
hausner
lgtm https://chromiumcodereview.appspot.com/10434005/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/10434005/diff/1/runtime/vm/parser.cc#newcode1043 runtime/vm/parser.cc:1043: ErrorMsg(parameter.name_pos, "repeated formal parameter"); In other places we ...
8 years, 7 months ago (2012-05-23 21:34:39 UTC) #2
regis
8 years, 7 months ago (2012-05-23 22:30:24 UTC) #3
On 2012/05/23 21:34:39, hausner wrote:
> lgtm
> 
> https://chromiumcodereview.appspot.com/10434005/diff/1/runtime/vm/parser.cc
> File runtime/vm/parser.cc (right):
> 
>
https://chromiumcodereview.appspot.com/10434005/diff/1/runtime/vm/parser.cc#n...
> runtime/vm/parser.cc:1043: ErrorMsg(parameter.name_pos, "repeated formal
> parameter");
> In other places we use the phrase "duplicate", so maybe the error should be
> "duplicate formal parameter name" ? You could even include the parameter name.

I submitted too early. I'll address yours comments in a following change.

Powered by Google App Engine
This is Rietveld 408576698