-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cast error ? #8268
Comments
Yep, this is real |
@hutou can you describe your environment? arch/distro The issue is related to the partial Int128 bits support? As a workaround, you should be able to alias CellType = Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | UInt16 | UInt32 | UInt64 | UInt8
x = 7.as(CellType)
y = x.as(Number)
puts typeof(y)
puts y * 2
puts y * 3 Might be fixed after #7093 |
@bcardiff it also happens on carc.in! |
@bcardiff Environment is : Gnome 3.34.0 on Archlinux (5.3.1-arch1-1-ARCH - x86_64) |
|
So is this something we need to fix in Archlinux packaging or in the compiler? |
The reproduction is trivial: We're just missing support for 128-bit arithmetics and the |
Given the following code :
displayed results are :
But if I try to multiply
y
with any other value than2
, for exampleputs y * 3
I get :
This error appears from the 0.31 release
The text was updated successfully, but these errors were encountered: