mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -3,10 +3,10 @@ contract B {
|
||||
}
|
||||
|
||||
contract C is B {
|
||||
constructor() public {
|
||||
constructor() {
|
||||
x = 3;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 7484: (95-96): Immutable variables must be initialized in the constructor of the contract they are defined in.
|
||||
// TypeError 1574: (95-96): Immutable state variable already initialized.
|
||||
// TypeError 7484: (88-89): Immutable variables must be initialized in the constructor of the contract they are defined in.
|
||||
// TypeError 1574: (88-89): Immutable state variable already initialized.
|
||||
|
||||
Reference in New Issue
Block a user