diff --git a/test/libsolidity/semanticTests/libraries/internal_call_bound_with_parentheses1.sol b/test/libsolidity/semanticTests/libraries/internal_call_bound_with_parentheses1.sol new file mode 100644 index 000000000..514cea6ba --- /dev/null +++ b/test/libsolidity/semanticTests/libraries/internal_call_bound_with_parentheses1.sol @@ -0,0 +1,16 @@ +library L { + function f() internal returns (uint) { + return 3; + } +} + +contract C { + function foo() public returns (uint) { + return (L.f)(); + } +} + +// ==== +// compileViaYul: also +// ---- +// foo() -> 3