mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Additional tests for edge cases for mutability, visibility, location, experimental, global, indexed and anonymous
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
==== Source: A ====
|
||||
contract test {
|
||||
function f(uint a) public {
|
||||
uint constant a;
|
||||
}
|
||||
}
|
||||
==== Source: B ====
|
||||
contract test {
|
||||
function f(uint a) public {
|
||||
uint immutable a;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (A:61-69): Expected ';' but got 'constant'
|
||||
// ParserError 2314: (B:61-70): Expected ';' but got 'immutable'
|
||||
Reference in New Issue
Block a user