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

Issue 8363027: Igonre closure classes when looking for duplication. (Closed)

Created:
9 years, 2 months ago by Anton Muhin
Modified:
9 years, 2 months ago
Reviewers:
Søren Gjesse, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Igonre closure classes when looking for duplication. Committed: https://code.google.com/p/dart/source/detail?r=598

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 2 1 chunk +39 lines, -0 lines 1 comment Download
M runtime/vm/object.cc View 1 chunk +3 lines, -0 lines 3 comments Download

Messages

Total messages: 8 (0 generated)
Anton Muhin
Sorry, no tests, just want to get rid of redness first. This fixes the problem ...
9 years, 2 months ago (2011-10-21 12:24:00 UTC) #1
Anton Muhin
Sorry, no tests, just want to get rid of redness first. This fixes the problem ...
9 years, 2 months ago (2011-10-21 12:24:00 UTC) #2
Søren Gjesse
lgtm - if you add a test to dart_api_impl_test.cc like the other ImportLibrary1X tests One ...
9 years, 2 months ago (2011-10-21 12:34:13 UTC) #3
Anton Muhin
Test added. Thanks a lot for review, Søren Siva, sorry, I am submitting as is ...
9 years, 2 months ago (2011-10-21 12:46:24 UTC) #4
Søren Gjesse
lgtm
9 years, 2 months ago (2011-10-21 12:46:26 UTC) #5
siva
http://codereview.chromium.org/8363027/diff/4002/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): http://codereview.chromium.org/8363027/diff/4002/runtime/vm/dart_api_impl_test.cc#newcode1693 runtime/vm/dart_api_impl_test.cc:1693: } I would also add a test case where ...
9 years, 2 months ago (2011-10-21 17:20:47 UTC) #6
Anton Muhin
http://codereview.chromium.org/8363027/diff/4002/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/8363027/diff/4002/runtime/vm/object.cc#newcode3711 runtime/vm/object.cc:3711: } Thanks a lot, Siva. Sounds like you're right. ...
9 years, 2 months ago (2011-10-21 17:34:25 UTC) #7
siva
9 years, 2 months ago (2011-10-21 18:13:37 UTC) #8
http://codereview.chromium.org/8363027/diff/4002/runtime/vm/object.cc
File runtime/vm/object.cc (right):

http://codereview.chromium.org/8363027/diff/4002/runtime/vm/object.cc#newcode...
runtime/vm/object.cc:3711: }
Anton, see the updates done in issue 187. Regis and I were discussing this and
we concluded that the implicit signature classes were being added at the wrong
place.

On 2011/10/21 17:34:26, antonmuhin wrote:
> Thanks a lot, Siva.  Sounds like you're right.  I'll investigate if you don't
> mind.
> 
> On 2011/10/21 17:20:47, asiva wrote:
> > I think this is not the right fix, imagine the case:
> > library1.dart has
> > typedef void callBackType(int param1, int param2);
> > and
> > library2.dart has
> > typedef int callBackType();
> > 
> > now we import these two into an app as
> > import library1.dart
> > import library2.dart
> > then we should get a duplicate definition error.
> > 
> > With this change I think we won't get an error.
>

Powered by Google App Engine
This is Rietveld 408576698