JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

`import as if`

Open ParadaCarleton opened this issue 1 year ago • 3 comments

Not sure if this is supposed to be allowed, or if it's supposed to be an error (in which case I think it would be better to error when importing).

julia> import InverseFunctions as if

julia> if.square(sqrt(2))
ERROR: ParseError:
# Error @ REPL[26]:1:3
if.square(sqrt(2))
# ╙ ── invalid identifier
Stacktrace:
 [1] top-level scope
   @ none:1

ParadaCarleton avatar Nov 06 '23 19:11 ParadaCarleton