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

Extensions with macro generics over abstracts #7184

Closed
ncannasse opened this issue Jun 13, 2018 · 1 comment
Closed

Extensions with macro generics over abstracts #7184

ncannasse opened this issue Jun 13, 2018 · 1 comment

Comments

@ncannasse
Copy link
Member

We used to have an extension in the form:

class Ext {
    public static function find<T>( it : Iterable<T>, f : T -> Bool ) : Null<T> { ... }
}

With 4.0-preview 4, these does not work anymore with types such as hxbit.Proxy<Array<Int>> which are macro generics evaluating to abstract hxbit.ArrayProxy<T>.

Is that intended or an unexpected regression?

@markknol markknol added this to the Release 4.0 milestone Sep 11, 2018
@Simn
Copy link
Member

Simn commented Sep 12, 2018

That's #5924, so it's not working anymore as intended. Note that this has nothing to do with macro generics, it's about abstracts and their @:to/@:from casts.

@Simn Simn closed this as completed Sep 12, 2018
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

3 participants