From dd251379e7915910d908cadd9d0c338018782eac Mon Sep 17 00:00:00 2001 From: wechman Date: Fri, 8 Jul 2022 09:31:53 +0200 Subject: [PATCH] Update multiple_custom_operators_same_contract --- .../custom/multiple_custom_operators_same_contract.sol | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/libsolidity/semanticTests/operators/custom/multiple_custom_operators_same_contract.sol b/test/libsolidity/semanticTests/operators/custom/multiple_custom_operators_same_contract.sol index dcfdbac3d..27b1279fe 100644 --- a/test/libsolidity/semanticTests/operators/custom/multiple_custom_operators_same_contract.sol +++ b/test/libsolidity/semanticTests/operators/custom/multiple_custom_operators_same_contract.sol @@ -1,16 +1,18 @@ +// TODO: Isn't it suppose to be the exact same as all_operators.sol ? + type MyInt is int; using {add as +} for MyInt; -function add(MyInt, MyInt) pure returns (bool) { - return true; +function add(MyInt, MyInt) pure returns (MyInt) { + return MyInt.wrap(0); } contract C { - function f() public pure returns (bool t) { + function f() public pure returns (MyInt t) { t = MyInt.wrap(2) + MyInt.wrap(7); } } // ==== // compileViaYul: also // ---- -// f() -> true +// f() -> 0