Commit d54a35c
Resolve identifiers in assembly blocks to locally imported symbols (#1424)
Fix #1421
Even if the imported symbol cannot be resolved, the identifier should
still resolve to the local definition in the import statement, so that
code in assembly blocks is consistent with normal Solidity code.
---------
Co-authored-by: Beta Ziliani <beta.ziliani@gmail.com>1 parent 7a101a7 commit d54a35c
File tree
16 files changed
+180
-31
lines changed- .changeset
- crates/solidity
- inputs/language/bindings
- outputs/cargo
- crate/src/generated/bindings/generated
- tests/src
- binder/generated
- bindings/bindings_output/generated
- testing/snapshots/bindings_output/yul
- imported_deconstructed_constants
- diff/generated
- generated
- imported_undefined_symbol
- diff/generated
- generated
- v2/generated
16 files changed
+180
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 263 | + | |
| 264 | + | |
267 | 265 | | |
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
273 | 271 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 272 | | |
279 | 273 | | |
280 | 274 | | |
| |||
285 | 279 | | |
286 | 280 | | |
287 | 281 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 282 | | |
293 | 283 | | |
294 | 284 | | |
| |||
Lines changed: 2 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments