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

Issue 10916335: Report errors when the number of arguments don't match the number of parameters in a const construc… (Closed)

Created:
8 years, 3 months ago by ngeoffray
Modified:
8 years, 3 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Report errors when the number of arguments don't match the number of parameters in a const constructor call. Committed: https://code.google.com/p/dart/source/detail?r=12435

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -10 lines) Patch
M lib/compiler/implementation/compile_time_constants.dart View 1 6 chunks +17 lines, -9 lines 0 comments Download
M lib/compiler/implementation/warnings.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 chunk +1 line, -1 line 0 comments Download
A tests/language/compile_time_constant_arguments_test.dart View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
8 years, 3 months ago (2012-09-17 08:55:47 UTC) #1
kasperl
LGTM, but: https://codereview.chromium.org/10916335/diff/1/lib/compiler/implementation/compile_time_constants.dart File lib/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/10916335/diff/1/lib/compiler/implementation/compile_time_constants.dart#newcode548 lib/compiler/implementation/compile_time_constants.dart:548: MessageKind kind = MessageKind.INVALID_NUMBER_OF_ARGUMENTS; I guess this ...
8 years, 3 months ago (2012-09-17 09:01:45 UTC) #2
ngeoffray
Thanks Kasper, PTAL https://codereview.chromium.org/10916335/diff/1/lib/compiler/implementation/compile_time_constants.dart File lib/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/10916335/diff/1/lib/compiler/implementation/compile_time_constants.dart#newcode548 lib/compiler/implementation/compile_time_constants.dart:548: MessageKind kind = MessageKind.INVALID_NUMBER_OF_ARGUMENTS; On 2012/09/17 ...
8 years, 3 months ago (2012-09-17 09:10:09 UTC) #3
kasperl
8 years, 3 months ago (2012-09-17 13:44:52 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698