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

Issue 9124006: Blacklist types from core library, issue 969 (Closed)

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

Description

Patch Set 1 #

Total comments: 9

Patch Set 2 : Use Set for checking type names. #

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 11 months ago (2012-01-06 16:17:52 UTC) #1
zundel
http://codereview.chromium.org/9124006/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java File compiler/java/com/google/dart/compiler/resolver/Elements.java (right): http://codereview.chromium.org/9124006/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java#newcode503 compiler/java/com/google/dart/compiler/resolver/Elements.java:503: public static boolean isTypeNode(DartTypeNode typeNode, List<String> names) { Wouldn't ...
8 years, 11 months ago (2012-01-06 18:17:20 UTC) #2
scheglov
http://codereview.chromium.org/9124006/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java File compiler/java/com/google/dart/compiler/resolver/Elements.java (right): http://codereview.chromium.org/9124006/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java#newcode503 compiler/java/com/google/dart/compiler/resolver/Elements.java:503: public static boolean isTypeNode(DartTypeNode typeNode, List<String> names) { On ...
8 years, 11 months ago (2012-01-09 15:12:28 UTC) #3
zundel
8 years, 11 months ago (2012-01-09 16:07:48 UTC) #4
lgtm

http://codereview.chromium.org/9124006/diff/1/compiler/javatests/com/google/d...
File
compiler/javatests/com/google/dart/compiler/resolver/ClassExtendsInterfaceNegativeTest.dart
(left):

http://codereview.chromium.org/9124006/diff/1/compiler/javatests/com/google/d...
compiler/javatests/com/google/dart/compiler/resolver/ClassExtendsInterfaceNegativeTest.dart:9:
class Base extends I {
On 2012/01/09 15:12:28, scheglov wrote:
> On 2012/01/06 18:17:20, zundel wrote:
> > Wait, this should be an error.  Judging from the JUnit tests, you probably
> > deleted this test by mistake?
> > 
> > Section 7.8: It is a compile-time error if the extends clause of a class C
> > includes a type expression that does not denot a class available in the
> lexical
> > scope of C.
> > 
> > 
> > But it WOULD be legal for 
> > 
> > class Base { }
> > interface I extends Base {} 
> > 
> > because a class always defines an implicit interface of the same name.
> (section
> > 7)
> 
> Moved into NegativeResolverTest.test_classExtendsInterface()
> 
> Plus added test_classImplementsClass() and test_interfaceExtendsClass().

Sorry, I mistook this for a shared test, but I now see it is private to dartc.

Powered by Google App Engine
This is Rietveld 408576698