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

dart2js: cannot access type arguments from patch class #9368

Closed
kasperl opened this issue Mar 22, 2013 · 6 comments
Closed

dart2js: cannot access type arguments from patch class #9368

kasperl opened this issue Mar 22, 2013 · 6 comments
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@kasperl
Copy link

kasperl commented Mar 22, 2013

I'm trying to patch a factory method on the HashMap class, but I cannot refer to the type variables in the patch:

   class HashMap<K, V> {
     external factory HashMap();
     ...
   }

   patch class HashMap<K, V> {
     patch factory HashMap() {
       .... cannot refer to K or V ...
     }
   }

The error message is something like this:

   sdk/lib/collection/hash_map.dart:23:15:
      Internal error: Cannot find value origin class(HashMap).K

and it is apparently reported on the non-patched class.

@johnniwinther
Copy link
Member

Added Started label.

@kasperl
Copy link
Author

kasperl commented Apr 22, 2013

Added this to the Later milestone.

@kasperl
Copy link
Author

kasperl commented May 23, 2013

Added TriageForM5 label.

@kasperl
Copy link
Author

kasperl commented May 28, 2013

Removed TriageForM5 label.

@kasperl
Copy link
Author

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link
Author

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed Priority-Medium labels Mar 1, 2016
@sigmundch sigmundch added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants