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

Issue 10837282: Issue 4518. Use inferred types to check if type of argumetn is assignable to the type of parameter (Closed)

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

Description

Issue 4518. Use inferred types to check if type of argumetn is assignable to the type of parameter http://code.google.com/p/dart/issues/detail?id=4518 R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=10825

Patch Set 1 #

Total comments: 2

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 4 months ago (2012-08-16 13:29:09 UTC) #1
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10837282/diff/1/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java File compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java (right): https://chromiumcodereview.appspot.com/10837282/diff/1/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java#newcode280 compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:280: * constants, of type int or String. I ...
8 years, 4 months ago (2012-08-16 13:56:54 UTC) #2
scheglov
8 years, 4 months ago (2012-08-16 14:29:41 UTC) #3
https://chromiumcodereview.appspot.com/10837282/diff/1/compiler/javatests/com...
File
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
(right):

https://chromiumcodereview.appspot.com/10837282/diff/1/compiler/javatests/com...
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:280:
* constants, of type int or String.
On 2012/08/16 13:56:54, Brian Wilkerson wrote:
> I don't have the spec available, but I think this restriction has been relaxed
> to allow compile-time constants of the same (any) type.

Yes.
I'm going to implement this.
But in this CL I just wanted to tweak comment to make it correct for current
implementation.

Powered by Google App Engine
This is Rietveld 408576698