mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
contract B {
|
||||
uint immutable x;
|
||||
|
||||
constructor() readX public {
|
||||
constructor() readX {
|
||||
x = 3;
|
||||
}
|
||||
|
||||
@@ -18,4 +18,4 @@ contract C is B {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 7733: (252-253): Immutable variables cannot be read during contract creation time, which means they cannot be read in the constructor or any function or modifier called from it.
|
||||
// TypeError 7733: (245-246): Immutable variables cannot be read during contract creation time, which means they cannot be read in the constructor or any function or modifier called from it.
|
||||
|
||||
Reference in New Issue
Block a user