forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix calling parent constructors in constructors
- Loading branch information
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
crates/solidity/outputs/cargo/tests/src/bindings_output/generated/contracts.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
.../snapshots/bindings_output/contracts/constructor_call_parent/generated/0.4.11-failure.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Parse errors: | ||
Error: Expected ConstantKeyword or Identifier or InternalKeyword or PrivateKeyword or PublicKeyword. | ||
╭─[input.sol:4:16] | ||
│ | ||
4 │ ╭─▶ constructor() Base() { | ||
5 │ ├─▶ } | ||
│ │ | ||
│ ╰─────────── Error occurred here. | ||
───╯ | ||
References and definitions: | ||
╭─[input.sol:1:1] | ||
│ | ||
1 │ contract Base {} | ||
│ ──┬─ | ||
│ ╰─── def: 1 | ||
│ | ||
3 │ contract Test is Base { | ||
│ ──┬─ ──┬─ | ||
│ ╰─────────── def: 2 | ||
│ │ | ||
│ ╰─── ref: 1 | ||
4 │ constructor() Base() { | ||
│ ─────┬───── | ||
│ ╰─────── unresolved | ||
───╯ |
18 changes: 18 additions & 0 deletions
18
.../snapshots/bindings_output/contracts/constructor_call_parent/generated/0.4.22-success.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
References and definitions: | ||
╭─[input.sol:1:1] | ||
│ | ||
1 │ contract Base {} | ||
│ ──┬─ | ||
│ ╰─── def: 1 | ||
│ | ||
3 │ contract Test is Base { | ||
│ ──┬─ ──┬─ | ||
│ ╰─────────── def: 2 | ||
│ │ | ||
│ ╰─── ref: 1 | ||
4 │ constructor() Base() { | ||
│ ──┬─ | ||
│ ╰─── ref: 1 | ||
───╯ |
6 changes: 6 additions & 0 deletions
6
...es/solidity/testing/snapshots/bindings_output/contracts/constructor_call_parent/input.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
contract Base {} | ||
|
||
contract Test is Base { | ||
constructor() Base() { | ||
} | ||
} |