Skip to content

Commit

Permalink
Add newsfragments, remove defunct snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillig committed Aug 11, 2021
1 parent 7f5fbd9 commit 86ca895
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
20 changes: 0 additions & 20 deletions crates/analyzer/tests/snapshots/errors__circular_struct.snap

This file was deleted.

1 change: 1 addition & 0 deletions newsfragments/468.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Calling `self.__init__()` now results in a nice error instead of a panic in the yul compilation stage.
13 changes: 13 additions & 0 deletions newsfragments/468.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The analyzer now uses a query-based system, which fixes some shortcomings of the previous implementation.

- Types can now refer to other types defined later in the file.
Example:
```
type Posts = Map<PostId, PostBody>
type PostId = u256
type PostBody = String<140>
```

- Duplicate definition errors now show the location of the original definition.
- The analysis of each function, type definition, etc happens independently, so an error in one
doesn't stop the analysis pass. This means fe can report more user errors in a single run of the compiler.

0 comments on commit 86ca895

Please sign in to comment.