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

Bug with macro def and generic class inheriting non-generic class #846

Closed
asterite opened this issue Jun 23, 2015 · 1 comment
Closed

Bug with macro def and generic class inheriting non-generic class #846

asterite opened this issue Jun 23, 2015 · 1 comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler

Comments

@asterite
Copy link
Member

class Reference
  macro def foo : String
    {{ @type.name.stringify }}
  end
end

class At
end

class Bt(T) < At
end

a = Pointer(At).malloc(1_u64)
a.value = Bt(Int32).new
a.value.foo

Gives:

Bug: Bt(Int32) doesn't implement add_def
@asterite
Copy link
Member Author

Closed in favor of #2665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Projects
None yet
Development

No branches or pull requests

1 participant