mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
This commit is contained in:
parent
38519eca27
commit
8ec8eb604f
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ fn (mut c Checker) gen_branch_context_string() string {
|
|||
mut arr := []string{}
|
||||
|
||||
// gen `T=int,X=string`
|
||||
if c.table.cur_fn.generic_names.len > 0
|
||||
&& c.table.cur_fn.generic_names.len == c.table.cur_concrete_types.len {
|
||||
if !isnil(c.table.cur_fn) && c.table.cur_fn.generic_names.len == c.table.cur_concrete_types.len {
|
||||
for i in 0 .. c.table.cur_fn.generic_names.len {
|
||||
arr << c.table.cur_fn.generic_names[i] + '=' +
|
||||
util.strip_main_name(c.table.type_to_str(c.table.cur_concrete_types[i]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue