1
0
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:
yuyi 2023-03-25 14:39:23 +08:00 committed by GitHub
parent a9f55de352
commit 17c4eb49fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -734,10 +734,6 @@ pub fn (mut p Parser) parse_generic_inst_type(name string) ast.Type {
if gts.kind == .multi_return {
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_cname += gts.cname
concrete_types << gt