mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[BUG]: Can't make an alias to `Reference`

Open soraros opened this issue 1 year ago • 0 comments

Bug description

As title. I can't imagine the problem is exclusive to Reference.

Steps to reproduce

alias Ref = Reference           # Error. Why?
alias Ref = Reference[_]        # Works. Why? Doesn't `Reference` have 3 parameters? Maybe related to default parameter?
alias Ref = Reference[_, _]     # Works. Again, why?
alias Ref = Reference[_, _, _]  # Parser crash, hooray!

System information

Mojo 0.7.0 on Docker, Intel Mac

soraros avatar Feb 13 '24 20:02 soraros