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

Issue 10546136: Report error if typedef references itself in type parameter bounds (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

Report error if typedef references itself in type parameter bounds R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8605

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 chunk +8 lines, -0 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 3 chunks +8 lines, -2 lines 0 comments Download
M tests/co19/co19-compiler.status View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 6 months ago (2012-06-12 23:51:51 UTC) #1
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10546136/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): https://chromiumcodereview.appspot.com/10546136/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode2327 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:2327: referencedTypes.add(bound); Do we need a null test in ...
8 years, 6 months ago (2012-06-13 04:31:38 UTC) #2
scheglov
8 years, 6 months ago (2012-06-13 13:38:19 UTC) #3
https://chromiumcodereview.appspot.com/10546136/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

https://chromiumcodereview.appspot.com/10546136/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:2327:
referencedTypes.add(bound);
On 2012/06/13 04:31:38, Brian Wilkerson wrote:
> Do we need a null test in case there is no bound, or is it Dynamic when there
is
> no bound?

We have null test later in cycle.

Powered by Google App Engine
This is Rietveld 408576698