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
❯ v
____ ____
\ \ / / | Welcome to the V REPL (for help with V itself, type exit , then run v help ).
\ \/ / | Note: the REPL is highly experimental. For best V experience, use a text editor,
\ / | save your code in a main.v file and execute: v run main.v
\ / | V 0.4.10 ded45dc . Use list to see the accumulated program so far.
\__/ | Use Ctrl-C or exit to exit, or help to see other available commands.
>>> a := error("hi")
>>> typeof(a)
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
6 |
7 | a := error("hi")
8 | println(typeof(a))
| ~~~~~~
IError
>>> typeof(a)
println(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
7 | a := error("hi")
8 | println(typeof(a))
9 | println(typeof(a))
| ~~~~~~
IError
IError
>>> typeof(a)
~~
10 | println(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
8 | println(typeof(a))
9 | println(typeof(a))
10 | println(typeof(a))
| ~~~~~~
IError
IError
IError
>>> typeof(a)
11 | println(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
9 | println(typeof(a))
10 | println(typeof(a))
11 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
>>> typeof(a)
12 | println(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
10 | println(typeof(a))
11 | println(typeof(a))
12 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
IError
>>> typeof(a)
println(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
11 | println(typeof(a))
12 | println(typeof(a))
13 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
IError
IError
>>> typeof(a)
(typeof(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
12 | println(typeof(a))
13 | println(typeof(a))
14 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
IError
IError
IError
>>> typeof(a)
(a))
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
13 | println(typeof(a))
14 | println(typeof(a))
15 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
IError
IError
IError
IError
>>> typeof(a)
warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
14 | println(typeof(a))
15 | println(typeof(a))
16 | println(typeof(a))
| ~~~~~~
IError
IError
IError
IError
IError
IError
IError
IError
IError
>>>
Reproduction Steps
Open v
Type in the following line by line.
a := error("hi")
typeof(a)
typeof(a)
typeof(a)
typeof(a)
typeof(a)
typeof(a)
typeof(a)
Describe the bug
Reproduction Steps
vExpected Behavior
It should not output weird stuff.
Current Behavior
see above
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 ded45dc
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.