diff --git a/test/libsolidity/semanticTests/userDefinedValueType/in_parenthesis.sol b/test/libsolidity/semanticTests/userDefinedValueType/in_parenthesis.sol new file mode 100644 index 000000000..0691a4c3a --- /dev/null +++ b/test/libsolidity/semanticTests/userDefinedValueType/in_parenthesis.sol @@ -0,0 +1,13 @@ +type MyInt is int; +contract C { + function f() public returns (MyInt a, int b) { + (MyInt).wrap; + a = (MyInt).wrap(5); + (MyInt).unwrap; + b = (MyInt).unwrap((MyInt).wrap(10)); + } +} +// ==== +// compileViaYul: also +// ---- +// f() -> 5, 10 diff --git a/test/libsolidity/syntaxTests/userDefinedValueType/in_parenthesis.sol b/test/libsolidity/syntaxTests/userDefinedValueType/in_parenthesis.sol deleted file mode 100644 index 403ceaa7a..000000000 --- a/test/libsolidity/syntaxTests/userDefinedValueType/in_parenthesis.sol +++ /dev/null @@ -1,7 +0,0 @@ -type MyInt is int; -function f() pure { - (MyInt).wrap; - (MyInt).wrap(5); - (MyInt).unwrap; - (MyInt).unwrap(MyInt.wrap(5)); -}