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

Issue 10546118: Issue 3534. It is a compile-time error if a typedef refers to itself (Closed)

Created:
8 years, 6 months ago by scheglov
Modified:
8 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 3534. It is a compile-time error if a typedef refers to itself http://code.google.com/p/dart/issues/detail?id=3534 R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8561

Patch Set 1 #

Total comments: 9

Patch Set 2 : Clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -10 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 3 chunks +65 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 2 chunks +47 lines, -1 line 0 comments Download
M tests/co19/co19-compiler.status View 1 chunk +1 line, -4 lines 0 comments Download
M tests/language/language.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 6 months ago (2012-06-12 04:35:03 UTC) #1
Brian Wilkerson
https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java File compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java (right): https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java#newcode61 compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java:61: TYPE_ALIAS_CANNOT_REFERENCES_ITSELF(ErrorSeverity.ERROR, "Type alias cannot reference itself directly of via ...
8 years, 6 months ago (2012-06-12 15:54:37 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java File compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java (right): https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java#newcode61 compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java:61: TYPE_ALIAS_CANNOT_REFERENCES_ITSELF(ErrorSeverity.ERROR, "Type alias cannot reference itself directly of via ...
8 years, 6 months ago (2012-06-12 16:45:41 UTC) #3
Brian Wilkerson
8 years, 6 months ago (2012-06-12 17:25:02 UTC) #4
LGTM

https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

https://chromiumcodereview.appspot.com/10546118/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:2336: // normal
parameters
OK. The spec doesn't explicitly mention type parameter bounds, but what it does
say seems rather inclusive. Given that the co19 tests are not perfect, a quick
e-mail to Gilad might be in order.

Powered by Google App Engine
This is Rietveld 408576698