mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
mutable args: don't allow primitives
This commit is contained in:
@@ -113,6 +113,10 @@ fn is_float_type(typ string) bool {
|
||||
return FLOAT_TYPES.contains(typ)
|
||||
}
|
||||
|
||||
fn is_primitive_type(typ string) bool {
|
||||
return is_number_type(typ) || typ == 'string'
|
||||
}
|
||||
|
||||
fn new_table(obfuscate bool) *Table {
|
||||
mut t := &Table {
|
||||
obf_ids: map[string]int{}
|
||||
|
||||
Reference in New Issue
Block a user