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

Issue 724133003: Improve error reporting when a mixin application is invalid. (Closed)

Created:
6 years, 1 month ago by Paul Berry
Modified:
6 years, 1 month ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Improve error reporting when a mixin application is invalid. For a situation like this: class B { B({int i}); } class M {} class C extends B with M { C() : super(); } we report the error at the node "with M", with the message "This mixin application is invalid because all of the constructors in the base class 'B' have optional parameters.". Previously we would report the error at the site of the super call, leaving the user no idea why there was a problem. BUG=dartbug.com/19576 R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=41745

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -32 lines) Patch
M pkg/analyzer/lib/src/generated/element.dart View 5 chunks +32 lines, -7 lines 1 comment Download
M pkg/analyzer/lib/src/generated/element_handle.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element_resolver.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 3 chunks +11 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 2 chunks +88 lines, -20 lines 0 comments Download
M pkg/analyzer/test/generated/compile_time_error_code_test.dart View 7 chunks +68 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Paul Berry
6 years, 1 month ago (2014-11-13 22:31:50 UTC) #2
scheglov
lgtm with question https://codereview.chromium.org/724133003/diff/1/pkg/analyzer/lib/src/generated/element.dart File pkg/analyzer/lib/src/generated/element.dart (right): https://codereview.chromium.org/724133003/diff/1/pkg/analyzer/lib/src/generated/element.dart#newcode1062 pkg/analyzer/lib/src/generated/element.dart:1062: bool get mixinErrorsReported; Do we really ...
6 years, 1 month ago (2014-11-13 23:02:47 UTC) #3
Paul Berry
On 2014/11/13 23:02:47, scheglov wrote: > lgtm with question > > https://codereview.chromium.org/724133003/diff/1/pkg/analyzer/lib/src/generated/element.dart > File pkg/analyzer/lib/src/generated/element.dart ...
6 years, 1 month ago (2014-11-13 23:29:49 UTC) #4
scheglov
On 2014/11/13 23:29:49, Paul Berry wrote: > On 2014/11/13 23:02:47, scheglov wrote: > > lgtm ...
6 years, 1 month ago (2014-11-13 23:57:01 UTC) #5
Paul Berry
6 years, 1 month ago (2014-11-14 18:05:29 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 41745 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698