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

Issue 10908007: Add test for final field initialization (fails on the VM). (Closed)

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

Description

Add test for final field initialization (fails on the VM). R=ngeoffray@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=11593

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -16 lines) Patch
M tests/language/field_initialization_order_test.dart View 2 chunks +11 lines, -5 lines 0 comments Download
A + tests/language/final_field_initialization_order_test.dart View 5 chunks +17 lines, -10 lines 0 comments Download
M tests/language/language.status View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
kasperl
8 years, 3 months ago (2012-08-30 09:14:23 UTC) #1
ngeoffray
LGTM
8 years, 3 months ago (2012-08-30 09:25:12 UTC) #2
hausner
8 years, 3 months ago (2012-08-30 15:44:29 UTC) #3
DBC

final_field_initialization_order_test.dart is wrong in my opinion. Final fields
can only be initialized once. If there is a field initializer at the point of
declaration, there cannot be a second one in the constructor's initializer list.

Please clarify with Gilad. The above semantics is what he and I discussed when I
implemented this in the VM.

Powered by Google App Engine
This is Rietveld 408576698