cgen: fix generic array init with fields (#16601)

This commit is contained in:
yuyi 2022-12-06 15:33:26 +08:00 committed by GitHub
parent edfaa76b3e
commit 46bb62955b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 2 deletions

View file

@ -460,7 +460,7 @@ const (
struct CharClass {
mut:
cc_type int = regex.cc_null // type of cc token
cc_type int // type of cc token
ch0 rune // first char of the interval a-b a in this case
ch1 rune // second char of the interval a-b b in this case
validator FnValidator // validator function pointer