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

Abstract with forward meta does not support cpp.Struct<T> #1202

Open
mikaib opened this issue Jan 26, 2025 · 0 comments
Open

Abstract with forward meta does not support cpp.Struct<T> #1202

mikaib opened this issue Jan 26, 2025 · 0 comments

Comments

@mikaib
Copy link

mikaib commented Jan 26, 2025

@:forward
abstract Vector2(cpp.Struct<Vector2Data>) {
   // ...
}

Vector2Data contains x and y fields. When using Vector2Data wrapped in cpp.Struct<T> and an abstract with the "@:forward" meta on it, intellij-haxe will fail to "forward" the fields to Vector2.

The following example is correctly handled by intellij-haxe:
Image

The following example is not:

Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant