mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10232 from ethereum/sol-yul-better-assertion-message-from-yulutilfunctions-conversionfunction
More informative assertion message on invalid conversions YulUtilFunctions::conversionFunction()
This commit is contained in:
commit
8d5b32e5b9
@ -2971,7 +2971,7 @@ string YulUtilFunctions::conversionFunction(Type const& _from, Type const& _to)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
solAssert(false, "");
|
solAssert(false, "Invalid conversion from " + _from.canonicalName() + " to " + _to.canonicalName());
|
||||||
}
|
}
|
||||||
|
|
||||||
solAssert(!body.empty(), _from.canonicalName() + " to " + _to.canonicalName());
|
solAssert(!body.empty(), _from.canonicalName() + " to " + _to.canonicalName());
|
||||||
|
Loading…
Reference in New Issue
Block a user