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 when quoting modules in qualified calls #13

Open
eksperimental opened this issue Mar 27, 2021 · 0 comments
Open

Bug when quoting modules in qualified calls #13

eksperimental opened this issue Mar 27, 2021 · 0 comments

Comments

@eksperimental
Copy link
Contributor

module_names_prefixed_with_elixir() ->
  [
    'Elixir.Kernel',
    'Elixir.Kernel':is_atom(true)
  ].

transpiles as:

  def module_names_prefixed_with_elixir() do
    [
      :"Elixir.Kernel",
      :Elixir.Kernel.is_atom(true)
    ]
  end

The first one is OK, the second one errors.

** (SyntaxError) debug.ex:8: atom cannot be followed by an alias. If the '.' was meant to be part of the atom's name, the atom name must be quoted. Syntax error before: '.'

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