Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error in CFE when constructor's required named parameter is missing #52872

Closed
sgrekhov opened this issue Jul 7, 2023 · 0 comments
Closed
Assignees
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. front-end-missing-error

Comments

@sgrekhov
Copy link
Contributor

sgrekhov commented Jul 7, 2023

This causes failure of co19\Language\Mixins\Mixin_Application\implicit_constructor_A03_t05.dart.
There is no expected error in CFE

class A {
  bool v1;
  num v2;
  A(bool this.v1, {required num this.v2});
}

mixin class M1 {
  num v2 = -1;
}

class C = A with M1;

main() {
  C c = C(true);
//      ^
// [analyzer] unspecified
// [cfe] unspecified
}

Tested on the edge SDK on Linux x64 and on Dart SDK version: 3.1.0-275.0.dev (dev) (Tue Jul 4 17:04:14 2023 -0700) on "windows_x64"

@sgrekhov sgrekhov added area-front-end Use area-front-end for front end / CFE / kernel format related issues. front-end-missing-error labels Jul 7, 2023
osa1 pushed a commit to osa1/sdk that referenced this issue Jul 17, 2023
Closes dart-lang#52872

Change-Id: I9089683f4fb2027211c96ad2065044c8181a282f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313781
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. front-end-missing-error
Projects
None yet
Development

No branches or pull requests

2 participants