Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix calling trait methods from each other
An attempt to fix issue #4770 in the spirit of PR #5141. Unfortunately (and a bit surprisingly), this fails when compiling stdlib: ``` Compiling library std (/Users/anton/fuel/sway/sway-lib-std) Failed to compile std error --> /Users/anton/fuel/sway/sway-lib-std/src/hash.sw:322:41 | 320 | 321 | #![inline(never)] 322 | pub fn sha256<T>(s: T) -> b256 where T: Hash { | ^^^^ Could not find symbol "Hash" in this scope. 323 | let mut hasher = Hasher::new(); 324 | s.hash(hasher); | ____ ```
- Loading branch information