mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: fix mod.Enum.val and x = .val
This commit is contained in:
@@ -56,7 +56,7 @@ pub fn (t mut Table) register_global(name string, typ Type) {
|
||||
// mod: p.mod
|
||||
// is_mut: true
|
||||
// idx: -1
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ pub fn (t &Table) get_type_symbol(typ Type) &TypeSymbol {
|
||||
return &t.types[idx]
|
||||
}
|
||||
// this should never happen
|
||||
panic('get_type_symbol: invalid type $typ - ${idx}. This should neer happen')
|
||||
panic('get_type_symbol: invalid type (typ=$typ idx=${idx}). This should neer happen')
|
||||
}
|
||||
|
||||
// this will override or register builtin type
|
||||
|
||||
Reference in New Issue
Block a user