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

Issue 10548002: Fix for issue 2351 - checking assignability on top level getters and setters (Closed)

Created:
8 years, 6 months ago by zundel
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix for issue 2351 - checking assignability on top level getters and setters Committed: https://code.google.com/p/dart/source/detail?r=8568 Committed: https://code.google.com/p/dart/source/detail?r=8588

Patch Set 1 : # #

Total comments: 3

Patch Set 2 : Added an extra Junit Test #

Patch Set 3 : Merged up with Konstantin's patch. #

Total comments: 2

Patch Set 4 : Attempting to reapply patch with setElement() calls. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -67 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 4 chunks +29 lines, -20 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 2 3 8 chunks +45 lines, -41 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 2 3 1 chunk +44 lines, -1 line 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
zundel
8 years, 6 months ago (2012-06-12 16:42:15 UTC) #1
Brian Wilkerson
http://codereview.chromium.org/10548002/diff/2001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): http://codereview.chromium.org/10548002/diff/2001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode1436 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1436: //node.setElement(getter); It isn't clear to me why we would ...
8 years, 6 months ago (2012-06-12 16:53:16 UTC) #2
zundel
PTAL http://codereview.chromium.org/10548002/diff/2001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): http://codereview.chromium.org/10548002/diff/2001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode1436 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1436: //node.setElement(getter); On 2012/06/12 16:53:16, Brian Wilkerson wrote: > ...
8 years, 6 months ago (2012-06-12 17:07:45 UTC) #3
zundel
http://codereview.chromium.org/10548002/diff/7001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): http://codereview.chromium.org/10548002/diff/7001/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode1443 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1443: node.setType(voidType); Not sure about this line... bringing in Konstantin
8 years, 6 months ago (2012-06-12 17:09:08 UTC) #4
Brian Wilkerson
LGTM
8 years, 6 months ago (2012-06-12 17:35:14 UTC) #5
scheglov
8 years, 6 months ago (2012-06-12 19:39:26 UTC) #6
lgtm

http://codereview.chromium.org/10548002/diff/7001/compiler/java/com/google/da...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

http://codereview.chromium.org/10548002/diff/7001/compiler/java/com/google/da...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1443:
node.setType(voidType);
On 2012/06/12 17:09:08, zundel wrote:
> Not sure about this line... bringing in Konstantin

Hm...
Yes, this line is not required.

Powered by Google App Engine
This is Rietveld 408576698