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

Issue 1699233002: Revert "Compile-time error if mixin class has a fact (Closed)

Created:
4 years, 10 months ago by Jacob
Modified:
4 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow factory constructors on mixin classes. This mitigates a breaking change impacting real users caused by 851b4a995c72b484e1b4d13dabbc7e6dcfe7cc24. The spec will be updated to allow factory constructors on mixins. R=gbracha@google.com, iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/6a0b3210265c5fbb74ed0d1b4b6c67910454e853

Patch Set 1 #

Total comments: 4

Patch Set 2 : ptal #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M runtime/vm/class_finalizer.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/mixin_illegal_constructor_test.dart View 4 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Jacob
This CL breaks existing Dart users who depended on being able to define factory constructors ...
4 years, 10 months ago (2016-02-16 18:57:33 UTC) #2
Jacob
Fixes https://github.com/dart-lang/sdk/issues/25791
4 years, 10 months ago (2016-02-16 18:58:16 UTC) #3
Ivan Posva
Needs more work. Thanks, -Ivan https://codereview.chromium.org/1699233002/diff/1/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (left): https://codereview.chromium.org/1699233002/diff/1/runtime/vm/class_finalizer.cc#oldcode2233 runtime/vm/class_finalizer.cc:2233: const char* ctr_kind = ...
4 years, 10 months ago (2016-02-17 07:51:26 UTC) #8
hausner
I do not approve of this change. If we can't fix bugs, we might as ...
4 years, 10 months ago (2016-02-17 11:25:04 UTC) #9
Jacob
I completely agree that we need to be able to fix bugs. However, this case ...
4 years, 10 months ago (2016-02-17 17:35:56 UTC) #12
Jacob
Gilad please review the CL to confirm this matches anticipated minor changes to the language ...
4 years, 10 months ago (2016-02-19 20:53:03 UTC) #13
Jacob
Gilad please review the CL to confirm this matches anticipated minor changes to the language ...
4 years, 10 months ago (2016-02-19 20:53:04 UTC) #14
Ivan Posva
Given the comments by Gilad in the area-language bug, I am fine removing the restriction ...
4 years, 10 months ago (2016-02-19 22:35:26 UTC) #15
gbracha
test lgtm.
4 years, 10 months ago (2016-02-19 23:29:35 UTC) #16
Jacob
4 years, 10 months ago (2016-02-22 18:19:54 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
6a0b3210265c5fbb74ed0d1b4b6c67910454e853 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698