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

Issue 206883003: Ensure warnings are given on logical boolean expressions and for loops where booleans are expected … (Closed)

Created:
6 years, 9 months ago by gbracha
Modified:
6 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Ensure warnings are given on logical boolean expressions and for loops where booleans are expected but the type is not bool. R=brianwilkerson@google.com, lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=34260

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -12 lines) Patch
M docs/language/dartLangSpec.tex View 13 chunks +27 lines, -12 lines 5 comments Download

Messages

Total messages: 5 (0 generated)
gbracha
A couple of missing warnings, and slight refactor of the grammar for top level getters. ...
6 years, 9 months ago (2014-03-20 22:57:13 UTC) #1
Brian Wilkerson
LGTM
6 years, 9 months ago (2014-03-20 23:25:25 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/206883003/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/206883003/diff/1/docs/language/dartLangSpec.tex#newcode1348 docs/language/dartLangSpec.tex:1348: Note that a parameter that is not used ...
6 years, 9 months ago (2014-03-21 08:28:59 UTC) #3
gbracha
Committed patchset #1 manually as r34260 (presubmit successful).
6 years, 9 months ago (2014-03-21 17:42:04 UTC) #4
gbracha
6 years, 9 months ago (2014-03-21 21:53:23 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/206883003/diff/1/docs/language/dartLangSpec.tex
File docs/language/dartLangSpec.tex (right):

https://codereview.chromium.org/206883003/diff/1/docs/language/dartLangSpec.t...
docs/language/dartLangSpec.tex:1910: \item A type parameter cannot be used as a
superclass or superinterface (\ref{superclasses}, \ref{superinterfaces},
\ref{interfaceSuperinterfaces}).
On 2014/03/21 08:29:00, Lasse Reichstein Nielsen wrote:
> Or a mixin?

That is always implied. A mixin always acts as a superclass.

https://codereview.chromium.org/206883003/diff/1/docs/language/dartLangSpec.t...
docs/language/dartLangSpec.tex:1911: \item A type parameter cannot be used as a
generic.
On 2014/03/21 08:29:00, Lasse Reichstein Nielsen wrote:
> A generic what? "Generic" is generally used as an adjective in this spec. It's
> not clear what it means as a noun.

I'll add 'class" in the next rev.

Powered by Google App Engine
This is Rietveld 408576698