v2 / vlib / v / slow_tests / repl / print_output_warning.repl
44 lines · 44 sloc · 1.1 KB · b1fefc5e0c5f2a4185da77bdbab62249bab89043
Raw
1a := error('hi')
2typeof(a)
3typeof(a)
4typeof(a)
5print(typeof(a))
6print(typeof(a))
7print(typeof(a))
8===output===
9warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
10 6 |
11 7 | a := error('hi')
12 8 | println(typeof(a))
13 | ~~~~~~
14IError
15warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
16 6 |
17 7 | a := error('hi')
18 8 | println(typeof(a))
19 | ~~~~~~
20IError
21warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
22 6 |
23 7 | a := error('hi')
24 8 | println(typeof(a))
25 | ~~~~~~
26IError
27warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
28 6 |
29 7 | a := error('hi')
30 8 | print(typeof(a))
31 | ~~~~~~
32IError
33warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
34 6 |
35 7 | a := error('hi')
36 8 | print(typeof(a))
37 | ~~~~~~
38IError
39warning: use e.g. `typeof(expr).name` or `sum_type_instance.type_name()` instead
40 6 |
41 7 | a := error('hi')
42 8 | print(typeof(a))
43 | ~~~~~~
44IError