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
When using the turbo fish syntax to define an associated function, if there is another function defined by the same name in the file the compiler will revert with an error stating there is a recursive call when there is none.
Example:
library;
pubstructMyStruct {
val:u64
}
pubtraitMyTrait<T> {
fnfoo() ->T;
}
implMyTrait<u64> forMyStruct {
fnfoo() ->u64 {
1
}
}
// Unassociated function defined as foo()fnfoo() {
<MyStructasMyTrait<u64>>::foo();
}
Tested with for v0.66.7
The text was updated successfully, but these errors were encountered:
bitzoic
added
bug
Something isn't working
compiler
General compiler. Should eventually become more specific as the issue is triaged
labels
Feb 12, 2025
When using the turbo fish syntax to define an associated function, if there is another function defined by the same name in the file the compiler will revert with an error stating there is a recursive call when there is none.
Example:
Tested with for v0.66.7
The text was updated successfully, but these errors were encountered: