mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: c2v fixes
This commit is contained in:
@ -103,6 +103,11 @@ pub fn (s &Scope) known_var(name string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
pub fn (s &Scope) known_const(name string) bool {
|
||||
s.find_const(name) or { return false }
|
||||
return true
|
||||
}
|
||||
|
||||
pub fn (mut s Scope) update_var_type(name string, typ Type) {
|
||||
mut obj := unsafe { s.objects[name] }
|
||||
if mut obj is Var {
|
||||
|
Reference in New Issue
Block a user