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 f<T>(y: T, x: T) = atan2(y, x)
error: while type checking
┌─ <input:1>:1:23
│
1 │ fn f<T>(y: T, x: T) = atan2(y, x)
│ ^^^^^ … could not be infered for this function call
│
┌─ Module 'math::functions', File /home/ped1st/.config/numbat/modules/math/functions.nbt:30:4
│
30 │ fn atan2<T>(y: T, x: T) -> Scalar
│ ----- The type parameter(s) in this generic function
Weirdly, it works if we give that type parameter another name:
fn f<S>(y: S, x: S) = atan2(y, x)
So it looks like we need to properly separate namespaces here.
The text was updated successfully, but these errors were encountered:
Weirdly, it works if we give that type parameter another name:
So it looks like we need to properly separate namespaces here.
The text was updated successfully, but these errors were encountered: