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

Issue 10832283: Allow non-const field initializers (Closed)

Created:
8 years, 4 months ago by hausner
Modified:
8 years, 4 months ago
Reviewers:
srdjan, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow non-const field initializers Revision 0.11 of the spec allows arbitrary initializer expressions for instance fields. Issue 3848 Committed: https://code.google.com/p/dart/source/detail?r=10672

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -61 lines) Patch
M runtime/vm/parser.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 6 chunks +49 lines, -60 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hausner
8 years, 4 months ago (2012-08-13 23:59:40 UTC) #1
srdjan
lgtm
8 years, 4 months ago (2012-08-14 18:42:53 UTC) #2
hausner
Thank you.
8 years, 4 months ago (2012-08-14 19:52:22 UTC) #3
kasperl
No tests?
8 years, 4 months ago (2012-08-24 11:51:35 UTC) #4
hausner
8 years, 4 months ago (2012-08-24 15:39:22 UTC) #5
I was surprised too that we have no tests :-)

I wish that we had a policy that every new language feature (or language change)
should come with a set of tests that are expected to pass once the feature is
implemented.

Before I checked in this change, I played around with a few simple, one-off
cases to make sure it does what I expect. I rely on more extensive co19 tests
for full test coverage.

Powered by Google App Engine
This is Rietveld 408576698