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

Issue 10515018: Issue 3269. Warning when 'case' is not type compatible with 'switch' expression (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 3269. Warning when 'case' is not type compatible with 'switch' expression http://code.google.com/p/dart/issues/detail?id=3269 R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8288

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add valid case expression in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -4 lines) Patch
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 2 chunks +15 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 1 chunk +22 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java View 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 6 months ago (2012-06-05 03:19:44 UTC) #1
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10515018/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/10515018/diff/1/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java#newcode138 compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:138: " case 12.3: break;", It would be good ...
8 years, 6 months ago (2012-06-05 14:44:44 UTC) #2
scheglov
8 years, 6 months ago (2012-06-05 15:58:18 UTC) #3
https://chromiumcodereview.appspot.com/10515018/diff/1/compiler/javatests/com...
File
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
(right):

https://chromiumcodereview.appspot.com/10515018/diff/1/compiler/javatests/com...
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:138:
"    case 12.3: break;",
On 2012/06/05 14:44:44, Brian Wilkerson wrote:
> It would be good to have a valid case expression in the test.

Done.

Powered by Google App Engine
This is Rietveld 408576698