mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
YulUtilFunctions::conversionFunction: Add more info to the assertion that fails on invalid conversion
This commit is contained in:
parent
6fa42b5efd
commit
c970fb46ce
@ -2971,7 +2971,7 @@ string YulUtilFunctions::conversionFunction(Type const& _from, Type const& _to)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
solAssert(false, "");
|
||||
solAssert(false, "Invalid conversion from " + _from.canonicalName() + " to " + _to.canonicalName());
|
||||
}
|
||||
|
||||
solAssert(!body.empty(), _from.canonicalName() + " to " + _to.canonicalName());
|
||||
|
Loading…
Reference in New Issue
Block a user