mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implemented parsing for UserDefinedValueType
Also added parsing tests.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
type MyInt is uint;
|
||||
|
||||
contract C {
|
||||
type MyAddress is address;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
type(MyInt) is uint256;
|
||||
// ----
|
||||
// ParserError 2314: (4-5): Expected identifier but got '('
|
||||
@@ -0,0 +1,6 @@
|
||||
function f() {
|
||||
type(uint).max;
|
||||
type MyInt is int;
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (44-49): Expected ';' but got identifier
|
||||
Reference in New Issue
Block a user