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

Issue 8679014: Remove duplicate resolveMember, fix type substitution for subtype of generic class (Closed)

Created:
9 years, 1 month ago by Jennifer Messerly
Modified:
9 years, 1 month ago
Reviewers:
jimhug
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove duplicate resolveMember, fix type substitution for subtype of generic class. This should get our type checks closer to working for generics. Committed: https://code.google.com/p/dart/source/detail?r=1810

Patch Set 1 #

Patch Set 2 : merged #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -155 lines) Patch
M frog/frogsh View 1 14 chunks +50 lines, -74 lines 0 comments Download
M frog/type.dart View 1 12 chunks +53 lines, -81 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Jennifer Messerly
tbr
9 years, 1 month ago (2011-11-23 19:37:02 UTC) #1
jimhug
LGTM More correct, less code - always nice to see. However, note my comment below ...
9 years, 1 month ago (2011-11-23 19:43:30 UTC) #2
Jennifer Messerly
9 years, 1 month ago (2011-11-23 23:39:36 UTC) #3
http://codereview.chromium.org/8679014/diff/2001/frog/type.dart
File frog/type.dart (right):

http://codereview.chromium.org/8679014/diff/2001/frog/type.dart#newcode594
frog/type.dart:594: _subtypes.add(s.resolveTypeParams(this));
On 2011/11/23 19:43:31, jimhug wrote:
> Does this always work?  It's clearly better than what I had (which was to just
> use the raw types).  However, it seems that this would get confused when the
> names of type params get changed around i.e.
> class C<T> {}
> class D<X, Y> extends C<Y> {}
> 
> Should this work, or do we need a TODO to figure this one out?

Doh. Great catch. That's going to be nasty. I'll see if I can come up with a
clean fix.

Powered by Google App Engine
This is Rietveld 408576698