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

No access to generics/(type variables) inside macros at class level #6757

Open
dawkot opened this issue Sep 20, 2018 · 1 comment
Open

No access to generics/(type variables) inside macros at class level #6757

dawkot opened this issue Sep 20, 2018 · 1 comment

Comments

@dawkot
Copy link

dawkot commented Sep 20, 2018

class C(N, M)
  {% begin %}
    @some_data : StaticArray(Int32, {{N * M}})
  {% end %}
end

Error in line 2: expanding macro

in line 3: undefined constant N (did you mean 'C')

@vladfaust
Copy link
Contributor

Yep, that feature is not implemented (yet?). Can be related to #3298

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