Closed jechol closed 3 years ago
@icidasset Could you review this?
It fixes #93
Doesn't this leave out all other import options, though? For example, :only?
Also, any thoughts on extracting this common functionality inside the using out into a .Internal module? May be premature optimization, but means we don't have to trace down all of these spots in the future.
I've moved it to Witchcraft.Internal
module. Should I open a new PR?
@florius0 I think we need to merge this first. Thanks for your advice.
For example,
would fail to compile because
override_kernel
is passed into opts inimport unquote(__MODULE__), unquote(opts)
that renders wrong argument.except: [>=2]
is passed toOrd.__using__
and its[>=:2, ...] ++ except
makes duplicated entry innew_opts
inimport unquote(__MODULE__), except: unquote(new_opts)
which causes compile error.This PR fixes above bugs.