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

internal error: Cannot find value parameter(this) #3198

Closed
peter-ahe-google opened this issue May 24, 2012 · 1 comment
Closed

internal error: Cannot find value parameter(this) #3198

peter-ahe-google opened this issue May 24, 2012 · 1 comment
Assignees

Comments

@peter-ahe-google
Copy link
Contributor

The compiler (dart2js) fails to compile the program below (which I'll add as dart/tests/language/closure_with_super_send_test.dart in a CL later today).

The compiler reports:

tests/language/closure_with_super_send_test.dart:14:3: internal error: Cannot find value parameter(this)
  test() {
  ^^^^
Error: Compilation failed.

class Super {
  m() => "super";
}

class Sub extends Super {
  m() => "sub";

  test() {
    var x;
    [0].forEach((e) => x = super.m());
    return x;
  }
}

main() {
  Expect.equals("super", new Sub().test());
  Expect.equals("super", new Super().m());
  Expect.equals("sub", new Sub().m());
}

@peter-ahe-google
Copy link
Contributor Author

Fixed in http://code.google.com/p/dart/source/detail?r=7942


Added Fixed label.

@peter-ahe-google peter-ahe-google self-assigned this May 24, 2012
copybara-service bot pushed a commit that referenced this issue Sep 29, 2022
dartdoc (https://github.com/dart-lang/dartdoc/compare/62bc150..866338f):
  866338f1  2022-09-29  Sam Rawlins  Bump to 6.1.2 (#3198)

html (https://github.com/dart-lang/html/compare/8243e96..faafebf):
  faafebf  2022-09-29  Devon Carew  Merge pull request #188 from dart-lang/update_readme
  d27b898  2022-09-29  Devon Carew  Merge pull request #189 from dart-lang/update_ci
  5a0be75  2022-09-29  Devon Carew  update to our current CI best practices
  4185afd  2022-09-29  Devon Carew  add markdown badges to the readme

intl (https://github.com/dart-lang/intl/compare/5464b3b..7639a15):
  7639a15  2022-09-27  Nate Bosch  Simplify the IntlStream class (#494)
  a4b44a9  2022-09-27  Lasse R.H. Nielsen  Cleanup of `var this.`, dynamic parameters, and more (#497)

mime (https://github.com/dart-lang/mime/compare/0a75a41..bf041aa):
  bf041aa  2022-09-26  Devon Carew  update action versions; add dependabot config (#69)

usage (https://github.com/dart-lang/usage/compare/e287a72..9a98c89):
  9a98c89  2022-09-29  Devon Carew  whitespace change to the LICENSE file (#182)
  cf284c7  2022-09-29  Kevin Moore  analysis options and lint cleanup (#183)

Change-Id: I0a6bd0de7bc75cd84b20e1de6f0463544ac68a70
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262020
Reviewed-by: Kevin Moore <[email protected]>
Commit-Queue: Kevin Moore <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant