You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func main() {
u: Long|Double = 0l
!ur: Ref[Long|Double] = !u
ur = 42.0
print(u) # 4631107791820423168 Integer value of the representation of floating point value 42.0
print_line()
print(ur) # 42.000000 the floating point value
}
This example shows that the type narrowing is currently not save. We need some conservative analysis of references to avoid this.
The text was updated successfully, but these errors were encountered:
This example shows that the type narrowing is currently not save. We need some conservative analysis of references to avoid this.
The text was updated successfully, but these errors were encountered: