From ea5b63914aec66697ca715db19d6fd26e60321b9 Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Tue, 1 Dec 2020 12:02:29 +0100 Subject: [PATCH] Add test to cover (L.f)() case --- .../internal_call_bound_with_parentheses1.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/libsolidity/semanticTests/libraries/internal_call_bound_with_parentheses1.sol 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