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
Yes, is the empty interface because a sum type like type Number2 = int | string has no this problem. Seems the problem is the x := isize(v) line which takes a "random address" different every time you run the code:
interfaceNumber2 {}
fnt(v Number2) {
match v {
int {
x:=isize(v) // 'random-address'println('${v}${isize(v)}${x}') // 42 42 'random-address'
}
else{}
}
}
t(42)
Describe the bug
Code: https://play.vlang.io/p/25f365b81b
Reproduction Steps
run playground
Expected Behavior
out should be:
42
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.8 a40df55
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Huly®: V_0.6-21500
The text was updated successfully, but these errors were encountered: