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
fn foo(x: Scalar) -> Scalar = x + something where something = 1
Ideally we'd like and expect that something is locally scoped to this function definition. But it's name leaks out and prevents the name something from being used in some contexts (like unit definitions):
>>> unit something
error: identifier clash in definition
┌─ <input:2>:1:51
│
1 │ fn foo(x: Scalar) -> Scalar = x + something where something = 1
│ --------- Previously defined here
│
┌─ <input:4>:1:6
│
1 │ unit something
│ ^^^^^^^^^ identifier is already in use
The text was updated successfully, but these errors were encountered:
Consider this function:
Ideally we'd like and expect that
something
is locally scoped to this function definition. But it's name leaks out and prevents the namesomething
from being used in some contexts (like unit definitions):The text was updated successfully, but these errors were encountered: