Skip to content

Internal error: Cannot find value parameter(#this) #14014

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

Closed
floitschG opened this issue Oct 11, 2013 · 5 comments
Closed

Internal error: Cannot find value parameter(#this) #14014

floitschG opened this issue Oct 11, 2013 · 5 comments
Milestone

Comments

@floitschG
Copy link
Contributor

The following program yields an internal error in dart2js.

=== (also attached as file)
class EventSink<T> {
}

class _HandlerEventSink<S, T> {
  _HandlerEventSink(f, f2, f3, s);
}

class _StreamSinkTransformer<S, T> {
  _StreamSinkTransformer(f);
}

class _StreamHandlerTransformer<S, T> extends _StreamSinkTransformer<S, T> {

  _StreamHandlerTransformer({
      void handleData(S data, EventSink<T> sink),
      void handleError(Object error, StackTrace stackTrace, EventSink<T> sink),
      void handleDone(EventSink<T> sink)})
      : super((EventSink<T> outputSink) {
          return new _HandlerEventSink<S, T>(
            handleData, handleError, handleDone, outputSink);
      });
}

main() {
  var t = new _StreamHandlerTransformer<int, String>();
}

===


Attachment:
bug.dart (675 Bytes)

@karlklose
Copy link
Contributor

Set owner to @karlklose.

@kasperl
Copy link

kasperl commented Oct 14, 2013

Added this to the M8 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Oct 14, 2013

Marked this as blocking #12819.

@DartBot
Copy link

DartBot commented Oct 21, 2013

This comment was originally written by [email protected]


Stealing that one from you Karl, I have a fix : https://codereview.chromium.org/32203002.


Set owner to [email protected].
Added Started label.

@DartBot
Copy link

DartBot commented Oct 22, 2013

This comment was originally written by [email protected]


Added Fixed label.

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

4 participants