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

Issue 2585723002: Added compile-time errors for supertypes: Type alias missing, and more. (Closed)

Created:
4 years ago by eernst
Modified:
4 years ago
CC:
reviews_dartlang.org, floitsch
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Added compile-time errors for supertypes: Type alias missing, and more. R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/88037f0a648e07160a078e2b9ce390c0f38c41b3

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added mixins #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M docs/language/dartLangSpec.tex View 1 3 chunks +9 lines, -4 lines 2 comments Download

Messages

Total messages: 8 (2 generated)
eernst
I couldn't find these errors in the spec, aren't they missing?
4 years ago (2016-12-16 10:06:55 UTC) #2
Lasse Reichstein Nielsen
LGTM, but should it also cover mixins ("with")? https://codereview.chromium.org/2585723002/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2585723002/diff/1/docs/language/dartLangSpec.tex#newcode1784 docs/language/dartLangSpec.tex:1784: %It ...
4 years ago (2016-12-16 11:14:59 UTC) #3
eernst
Review response, PTAL. https://codereview.chromium.org/2585723002/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2585723002/diff/1/docs/language/dartLangSpec.tex#newcode1784 docs/language/dartLangSpec.tex:1784: %It is a compile-time error if ...
4 years ago (2016-12-16 11:33:47 UTC) #4
Lasse Reichstein Nielsen
LGTM https://codereview.chromium.org/2585723002/diff/20001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2585723002/diff/20001/docs/language/dartLangSpec.tex#newcode2099 docs/language/dartLangSpec.tex:2099: It is a compile-time error if the \WITH{} ...
4 years ago (2016-12-16 12:12:02 UTC) #5
eernst
Committed patchset #2 (id:20001) manually as 88037f0a648e07160a078e2b9ce390c0f38c41b3 (presubmit successful).
4 years ago (2016-12-16 13:03:31 UTC) #7
eernst
4 years ago (2016-12-16 13:06:05 UTC) #8
Message was sent while issue was closed.
Review response.

https://codereview.chromium.org/2585723002/diff/20001/docs/language/dartLangS...
File docs/language/dartLangSpec.tex (right):

https://codereview.chromium.org/2585723002/diff/20001/docs/language/dartLangS...
docs/language/dartLangSpec.tex:2099: It is a compile-time error if the \WITH{}
clause of a mixin application $C$ includes a type variable (\ref{generics}), a
type alias (\ref{typedef}), an enumerated type (\ref{enums}), a malformed type,
or a deferred type (\ref{staticTypes}).
On 2016/12/16 12:12:02, Lasse Reichstein Nielsen wrote:
> It would be much easier if we had a definition of "class type" somewhere, so
we
> could just say "error ... if ... not class type". :)

Right, which was basically what Gilad already had in that commented-out sentence
that I just deleted. I wonder why he dropped that approach?

Powered by Google App Engine
This is Rietveld 408576698