Open cyberthirst opened 3 months ago
6f09e2966b8096d8d36a85ad8745d56691dd25c4
@external def foo()->bytes32: a: bytes32 = convert(0-1, bytes32) return a
@external def foo()->bool: return convert(0-1, bool)
Returns vyper.exceptions.TypeMismatch: Expected uint8 but literal can only be cast as int104 or int96.
vyper.exceptions.TypeMismatch: Expected uint8 but literal can only be cast as int104 or int96.
@external def foo()->uint256: a: uint256 = convert(0-1, uint256) return a
Returns vyper.exceptions.StaticAssertionException: assertion found to fail at compile time. (hint: did you mean 'raise'?) [assert, [sge, -1 <0-1>, 0]]
vyper.exceptions.StaticAssertionException: assertion found to fail at compile time. (hint: did you mean 'raise'?) [assert, [sge, -1 <0-1>, 0]]
credits: @Leminkay
Version Information
6f09e2966b8096d8d36a85ad8745d56691dd25c4
Issue description and/or POC
Returns
vyper.exceptions.TypeMismatch: Expected uint8 but literal can only be cast as int104 or int96.
Returns
vyper.exceptions.StaticAssertionException: assertion found to fail at compile time. (hint: did you mean 'raise'?) [assert, [sge, -1 <0-1>, 0]]
credits: @Leminkay