mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove freetype references everywhere
This commit is contained in:
@ -362,6 +362,9 @@ pub fn (mut c Checker) struct_init(mut struct_init ast.StructInit) table.Type {
|
||||
}
|
||||
struct_init.typ = c.expected_type
|
||||
}
|
||||
if struct_init.typ == 0 {
|
||||
c.error('unknown type', struct_init.pos)
|
||||
}
|
||||
type_sym := c.table.get_type_symbol(struct_init.typ)
|
||||
if type_sym.kind == .sum_type && struct_init.fields.len == 1 {
|
||||
sexpr := struct_init.fields[0].expr.str()
|
||||
|
Reference in New Issue
Block a user