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 panic: table.sym: invalid type (typ=ast.Type(0x0 = 0) idx=0). Compiler bug. This should never happen. Please report the bug using `v bug file.v`.
v hash: 7831fb0
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:19641: at _v_panic: Backtrace
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:37278: by v__ast__default_table_panic_handler
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:37284: by v__ast__Table_panic
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:37983: by v__ast__Table_sym
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:56314: by v__checker__Checker_smartcast
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:4830: by v__checker__Checker_match_exprs
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:4117: by v__checker__Checker_match_expr
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:54784: by v__checker__Checker_expr
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:53582: by v__checker__Checker_stmt
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:54240: by v__checker__Checker_stmts_ending_with_expression
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:54217: by v__checker__Checker_stmts
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:63344: by v__checker__Checker_fn_decl
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:299: by v__checker__Checker_post_process_generic_fns
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:51685: by v__checker__Checker_check_files
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:53227: by v__builder__Builder_middle_stages
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:53268: by v__builder__Builder_front_and_middle_stages
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:55798: by v__builder__cbuilder__gen_c
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:55770: by v__builder__cbuilder__build_c
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:55761: by v__builder__cbuilder__compile_c
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:55678: by v__builder__Builder_rebuild
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:54830: by v__builder__compile
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:56199: by main__rebuild
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:56112: by main__main
/tmp/v_1000/v.01K3VHCMXPCWGZD7T78ACTKBPD.tmp.c:57020: by main
Describe the bug
trying to use $match with unaliased_typ results in a compilation error.
Reproduction Steps
Expected Behavior
outputs 'hi'
Current Behavior
Possible Solution
No response
Additional Information/Context
I also got a different error when I tried using it in my json encoder:
resulted in:
V version
V 0.4.11
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.