From 0d93daac56c9dfee25b8398b7218b81b8d96cb5b Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Thu, 28 Mar 2024 16:45:29 +0100 Subject: [PATCH] add test --- contracts/Test.sol | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contracts/Test.sol b/contracts/Test.sol index 31d04f4..67cae5d 100644 --- a/contracts/Test.sol +++ b/contracts/Test.sol @@ -263,3 +263,16 @@ library LibraryHasStruct { function foo() internal returns (Inner memory) {} } + +library UdvtConflict { + type myFirstType is bytes32; + type mySecondType is bytes32; + + function unwrap(myFirstType t) internal pure returns (bytes32) { + return myFirstType.unwrap(t); + } + + function unwrap(mySecondType t) internal pure returns (bytes32) { + return mySecondType.unwrap(t); + } +} \ No newline at end of file