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

include module does not include macros #4640

Closed
artworx opened this issue Jun 30, 2017 · 1 comment
Closed

include module does not include macros #4640

artworx opened this issue Jun 30, 2017 · 1 comment

Comments

@artworx
Copy link

artworx commented Jun 30, 2017

Crystal 0.23.0 [3c3d3e2] (2017-06-28) LLVM 3.8.1

The following code no longer compiles under Crystal 0.23

module A
  macro test(msg)
    def message
      {{msg}}
    end
  end
end

class B
  include A

  test("macro test")
end

print B.new.message
$ crystal a.cr 
Error in a.cr:12: undefined method 'test'

  test("macro test")
  ^~~~

Is this intended behavior?

@artworx
Copy link
Author

artworx commented Jun 30, 2017

already reported as #4639, sorry for the duplicate

@artworx artworx closed this as completed Jun 30, 2017
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