mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rewrite of the antlr grammar.
This commit is contained in:
committed by
chriseth
parent
9e488f12fc
commit
bd21535dd1
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
constructor() internal internal {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9439: (38-46): Visibility already specified as "internal".
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
constructor() internal public {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9439: (38-44): Visibility already specified as "internal".
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
constructor() payable payable {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9680: (37-44): State mutability already specified as "payable".
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
constructor() public internal {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9439: (36-44): Visibility already specified as "public".
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
constructor() public public {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9439: (36-42): Visibility already specified as "public".
|
||||
@@ -0,0 +1,7 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
function() pure pure g;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9680: (62-66): State mutability already specified as "pure".
|
||||
@@ -0,0 +1,7 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
function() public public g;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 9439: (64-70): Visibility already specified as "public".
|
||||
Reference in New Issue
Block a user