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

Issue 10800027: Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Add… (Closed)

Created:
8 years, 5 months ago by aam-me
Modified:
8 years, 3 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org, kasperl, hausner
Visibility:
Public.

Description

Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Added check to the dart2js parser, so that setting values on optional named parameters is flagged as error. Tests pass. BUG=dart:351 TEST= Committed: https://code.google.com/p/dart/source/detail?r=11573

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed dart2js changes. Aggregated negative tests into one. #

Total comments: 3

Patch Set 3 : Fixed comments, got rid of redundant static testMain(), cleaned up typedef testing. #

Patch Set 4 : Fixed broken build - changed test name in language.status file. Removed trailing whitespaces. #

Patch Set 5 : Fixed test - wrong number of positional args it static type warning rather than compile-time error. #

Patch Set 6 : Rebased #

Patch Set 7 : dart and dart2dart fail to produce static type warning instead of compile-time error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -102 lines) Patch
M tests/language/language.status View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
D tests/language/named_parameters4_negative_test.dart View 1 2 3 4 5 1 chunk +0 lines, -25 lines 0 comments Download
M tests/language/named_parameters6_negative_test.dart View 1 1 chunk +0 lines, -13 lines 0 comments Download
M tests/language/named_parameters8_negative_test.dart View 1 1 chunk +0 lines, -20 lines 0 comments Download
D tests/language/named_parameters9_negative_test.dart View 1 2 3 4 5 1 chunk +0 lines, -23 lines 0 comments Download
A tests/language/named_parameters_aggregated_test.dart View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
D tests/language/named_parameters_negative_test.dart View 1 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ahe
Hi Alexander, I hope you're still interested in this. I suggest that you split this ...
8 years, 4 months ago (2012-08-21 21:20:39 UTC) #1
aam-me
Thanks, Peter. I removed compiler changes - will create separate CL for that. So this ...
8 years, 4 months ago (2012-08-23 01:40:01 UTC) #2
ahe
LGTM https://chromiumcodereview.appspot.com/10800027/diff/4001/tests/language/language_dart2js.status File tests/language/language_dart2js.status (right): https://chromiumcodereview.appspot.com/10800027/diff/4001/tests/language/language_dart2js.status#newcode100 tests/language/language_dart2js.status:100: named_parameters_aggregated_test/01: Fail # not handling def-vals for optional ...
8 years, 4 months ago (2012-08-23 11:39:25 UTC) #3
aam-me
Thank you, Peter. All taken care of. On 2012/08/23 11:39:25, ahe wrote: > https://chromiumcodereview.appspot.com/10800027/diff/4001/tests/language/language_dart2js.status#newcode100 > ...
8 years, 4 months ago (2012-08-23 22:01:10 UTC) #4
ahe
Still LGTM! Lines longer than 80 columns are allowed in status files.
8 years, 4 months ago (2012-08-24 03:54:41 UTC) #5
aam-me
Peter, please, review. I replace failed deleted test with new one in language.status for dartc ...
8 years, 4 months ago (2012-08-26 03:48:52 UTC) #6
aam-me
Peter, I have moved diagnostic for default values for optional named parameters to resolver: https://chromiumcodereview.appspot.com/10874078. ...
8 years, 3 months ago (2012-08-27 03:16:53 UTC) #7
ahe
8 years, 3 months ago (2012-08-29 05:46:16 UTC) #8
LGTM!

Powered by Google App Engine
This is Rietveld 408576698