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

Issue 513563002: Fix Issue 18628 by refixing Issue 18468 (Closed)

Created:
6 years, 3 months ago by Nathan Collins
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Fix Issue 18628 by refixing Issue 18468 The fix: types used as expressions have type [Type]. In r35501 @jwren committed a fix for Issue 18468, but that fix was buggy -- it conflated type parameters with their types -- resulting in Issue 18628. This commit includes a correct fix for Issue 18628, which in turn fixes Issue 18628. Interestingly, the original cause of Issue 18468 seems to be another regression, but I don't have enough GitSVN history for [git blame] to tell me anything useful :P The tests from Issue 18628 are also included in this commit. https://code.google.com/p/dart/issues/detail?id=18628 https://code.google.com/p/dart/issues/detail?id=18468 Revert bad fix for https://code.google.com/p/dart/issues/detail?id=18468 Partial revert, since the new test is still good, and the a good fix shouldn't introduce any failures in other tests. R=jwren@google.com, brianwilkerson@google.com BUG=https://code.google.com/p/dart/issues/detail?id=18468,https://code.google.com/p/dart/issues/detail?id=18628 Committed: https://code.google.com/p/dart/source/detail?r=39630

Patch Set 1 #

Total comments: 12

Messages

Total messages: 14 (0 generated)
Nathan Collins
6 years, 3 months ago (2014-08-27 00:10:27 UTC) #1
jwren
LGTM https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java#newcode255 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java:255: public void test_invalidAssignment_regressionInR35501() throws Exception { Change R35501 ...
6 years, 3 months ago (2014-08-27 06:59:40 UTC) #2
Brian Wilkerson
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java#newcode1273 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java:1273: staticType = typeProvider.getTypeType(); This seems like a very drastic ...
6 years, 3 months ago (2014-08-27 07:42:41 UTC) #3
Nathan Collins
collinsn@google.com changed reviewers: + gbracha@google.com, karlklose@google.com
6 years, 3 months ago (2014-08-27 17:42:33 UTC) #4
Nathan Collins
Hi Karl and Gilad, could you take a look? The question is whether I'm correct ...
6 years, 3 months ago (2014-08-27 17:42:33 UTC) #5
Nathan Collins
Committed patchset #1 manually as 39630 (presubmit successful).
6 years, 3 months ago (2014-08-28 01:05:48 UTC) #6
Nathan Collins
On 2014/08/27 06:59:40, jwren wrote: > LGTM > > https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java > File > editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java > ...
6 years, 3 months ago (2014-08-28 01:14:20 UTC) #7
karlklose
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java#newcode1273 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java:1273: staticType = typeProvider.getTypeType(); On 2014/08/27 17:42:33, Nathan Collins wrote: ...
6 years, 3 months ago (2014-08-28 06:54:38 UTC) #8
karlklose
6 years, 3 months ago (2014-08-28 06:54:41 UTC) #9
karlklose
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java#newcode255 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java:255: public void test_invalidAssignment_regressionInR35501() throws Exception { Shouldn't we add ...
6 years, 3 months ago (2014-08-28 06:59:55 UTC) #10
Nathan Collins
Reply to @karlklose's comments. https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java#newcode1273 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java:1273: staticType = typeProvider.getTypeType(); On 2014/08/28 ...
6 years, 3 months ago (2014-08-28 22:23:18 UTC) #11
karlklose
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java#newcode1273 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java:1273: staticType = typeProvider.getTypeType(); On 2014/08/28 22:23:17, Nathan Collins wrote: ...
6 years, 3 months ago (2014-08-29 08:01:09 UTC) #12
Nathan Collins
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java (right): https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java#newcode255 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java:255: public void test_invalidAssignment_regressionInR35501() throws Exception { On 2014/08/29 08:01:09, ...
6 years, 3 months ago (2014-08-29 20:13:37 UTC) #13
karlklose
6 years, 3 months ago (2014-09-01 07:35:23 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.goo...
File
editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
(right):

https://codereview.chromium.org/513563002/diff/1/editor/tools/plugins/com.goo...
editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java:255:
public void test_invalidAssignment_regressionInR35501() throws Exception {
Writing tests for the VM and dart2js is a bit tricky, as they only compile what
(they think) is needed. This means that you have to actually use what you want
to test. I'll add comments to the test in the other CL.

Powered by Google App Engine
This is Rietveld 408576698