mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: clean up in parse_generic_inst_type() (#17766)
This commit is contained in:
parent
a9f55de352
commit
17c4eb49fb
@ -734,10 +734,6 @@ pub fn (mut p Parser) parse_generic_inst_type(name string) ast.Type {
|
|||||||
if gts.kind == .multi_return {
|
if gts.kind == .multi_return {
|
||||||
p.error_with_pos('cannot use multi return as generic concrete type', type_pos)
|
p.error_with_pos('cannot use multi return as generic concrete type', type_pos)
|
||||||
}
|
}
|
||||||
// if gt.has_flag(.generic) && gts.name.len > 1 {
|
|
||||||
// p.error_with_pos('the parameter type name of a generic struct, must be a single capital letter placeholder name, like T or X, or a non-generic type name like int, string, etc.',
|
|
||||||
// type_pos)
|
|
||||||
// }
|
|
||||||
bs_name += gts.name
|
bs_name += gts.name
|
||||||
bs_cname += gts.cname
|
bs_cname += gts.cname
|
||||||
concrete_types << gt
|
concrete_types << gt
|
||||||
|
Loading…
Reference in New Issue
Block a user