Mohammad Fawaz
Mohammad Fawaz
Example: ```rust contract; abi MyContract { fn test_function(); } abi MyContract2 { #[storage(read)] fn test_function2(); } storage { b: b256 = 0x0000000000000000000000000000000000000000000000000000000000000000, } impl MyContract2 for Contract { #[storage(read)] fn...
Closes #2386
The parser does not currently have error recovery in most places. This means that if a program has multiple parsing errors, we are going to only emit one of them...
Example: ```rust contract; abi MyContract { fn test_function(); } impl MyContract for Contract { #[typo] fn test_function() { } } ``` This builds fine. However, we should probably be checking...
Example: ```rust script; fn main() {} fn foo(self) {} ``` Rust errors out with: `^^^^^ not semantically valid as function parameter` but we do not error out.
https://github.com/FuelLabs/sway/pull/2218 introduces the `typeArgument` field to the JSON ABI which got us one step closer to supporting (resolved) generics in the ABI. However, as @iqdecay pointed out, this doesn't solve...
For example, it would be nice to be able to write: ```rust struct Wrapper { map1: StorageMap = StorageMap {}, map2: StorageMap = StorageMap {}, } storage { wrapper: Wrapper...
This is probably the first page that new comers look at and try to follow so it should really be constantly up-to-date and in the best shape possible. There are...
Below are some examples that should not compile but do. I bundled those together in the same issue because they are somewhat related and there may be others. Whoever takes...
Example ```rust contract; storage { name: str[4] = "test", } ``` Error: ```rust thread 'main' panicked at 'assertion failed: s.len() % 8 == 0', sway-core/src/ir_generation/storage.rs:191:13 ``` Interrestingly: * Sizes 1,...