You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad compile error with fun bar(&foo: Foo) syntax #38371
Activity
Stebalien commentedon Dec 15, 2016
Well, that code is actually syntactically correct, it just doesn't type-check.
For example, this works:
And is equivalent to:
ekr commentedon Dec 15, 2016
OK. I was just following @dherman's instructions to file here, so I'll defer to those who know better than me.
Stebalien commentedon Dec 15, 2016
@ekr yeah, reporting here was the right thing to do. This is confusing and deserves a "did you mean
foo: &Foo?".