Commit f6cf16d
authored
fix(sema): add handling for event/error failures (#660)
fixes #659
```bash
error: wrong number of arguments for error AmazingContract.SimpleError(bool): expected 1, found 0
╭▸ testdata/test.sol:9:9
│
9 │ SimpleError();
│ ━━━━━━━━━━━━━
│
╰ note: created at crates/sema/src/typeck/checker.rs:171:34,
emitted at crates/sema/src/typeck/checker.rs:178:34
error: wrong number of arguments for event AmazingContract.SimpleEvent(bool): expected 1, found 2
╭▸ testdata/test.sol:10:9
│
10 │ SimpleEvent(true, false);
│ ━━━━━━━━━━━━━━━━━━━━━━━━
│
╰ note: created at crates/sema/src/typeck/checker.rs:171:34,
emitted at crates/sema/src/typeck/checker.rs:178:34
error: aborting due to 2 previous errors
```1 parent a7f28e8 commit f6cf16d
1 file changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
341 | 349 | | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
345 | 353 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
0 commit comments