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

undefined macro variable 'types' #26

Closed
jwoertink opened this issue Feb 19, 2019 · 1 comment · Fixed by #34
Closed

undefined macro variable 'types' #26

jwoertink opened this issue Feb 19, 2019 · 1 comment · Fixed by #34
Labels

Comments

@jwoertink
Copy link
Contributor

This happens when adding in a type that isn't supported by serialization.

class SomeJob < Mosquito::QueuedJob
  params ip : String?

  def perform
  end
end
web    | in macro 'inherited' /app/lib/mosquito/src/mosquito/queued_job.cr:3, line 33:
....
web    |   32.   if type.is_a?(Union)
web    | > 33.     raise("Mosquito Job: Unable to generate a constructor for Union Types: #{types}")
web    |   34.   else
....
web    |
web    | undefined macro variable 'types'
@robacarp robacarp added the bug label Feb 20, 2019
@robacarp
Copy link
Collaborator

Yep. Looks like that should just be type.

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

Successfully merging a pull request may close this issue.

2 participants