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

Issue 88433002: Emit a compile-time error when using type literals in case-expressions. (Closed)

Created:
7 years ago by karlklose
Modified:
7 years ago
CC:
reviews_dartlang.org, ngeoffray
Visibility:
Public.

Description

Emit a compile-time error when using type literals in case-expressions. BUG=dartbug.com/15295 R=johnniwinther@google.com, ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=30707

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -17 lines) Patch
M sdk/lib/_internal/compiler/implementation/typechecker.dart View 2 chunks +3 lines, -1 line 1 comment Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 chunk +1 line, -1 line 0 comments Download
A + tests/compiler/dart2js_extra/type_constant_switch_test.dart View 1 chunk +7 lines, -15 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
karlklose
7 years ago (2013-11-26 14:46:27 UTC) #1
ngeoffray
LGTM
7 years ago (2013-11-26 14:49:02 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/88433002/diff/1/sdk/lib/_internal/compiler/implementation/typechecker.dart File sdk/lib/_internal/compiler/implementation/typechecker.dart (right): https://codereview.chromium.org/88433002/diff/1/sdk/lib/_internal/compiler/implementation/typechecker.dart#newcode1511 sdk/lib/_internal/compiler/implementation/typechecker.dart:1511: if (cls == compiler.typeClass) return true; Add a ...
7 years ago (2013-11-26 14:53:47 UTC) #3
karlklose
7 years ago (2013-11-27 11:34:44 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r30707 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698