This website requires JavaScript.
Explore
Help
Sign In
cerc-io
/
solidity
Watch
16
Star
0
Fork
0
You've already forked solidity
mirror of
https://github.com/ethereum/solidity
synced
2023-10-03 13:03:40 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
0d0a7fc1f5
solidity
/
test
/
libsolidity
/
syntaxTests
/
immutable
/
function_initialization_reading.sol
6 lines
106 B
Solidity
Raw
Normal View
History
Unescape
Escape
Validate immutable variables
2020-03-10 17:15:50 +00:00
contract
C
{
uint
immutable
x
=
f
(
)
;
Minor tweaks to immutable tests for better diffs
2023-06-02 10:40:19 +00:00
function
f
(
)
public
view
returns
(
uint
)
{
return
3
+
x
;
}
Validate immutable variables
2020-03-10 17:15:50 +00:00
}
Reference in New Issue
Copy Permalink