1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

👍 Fix up redundant type declare and remove space (#603)

This commit is contained in:
Ryota.I (yabu)
2019-06-26 23:39:40 +09:00
committed by Alexander Medvednikov
parent 32e61b23d0
commit 61e4367aa8
6 changed files with 57 additions and 57 deletions

View File

@ -84,7 +84,7 @@ const (
'panic',
'register'
]
)
// This is used in generated C code
@ -164,7 +164,7 @@ fn (table &Table) known_pkg(pkg string) bool {
return pkg in table.packages
}
fn (t mut Table) register_const(name, typ string, pkg string, is_imported bool) {
fn (t mut Table) register_const(name, typ, pkg string, is_imported bool) {
t.consts << Var {
name: name
typ: typ
@ -273,11 +273,11 @@ fn (t mut Table) register_type_with_parent(typ, parent string) {
return
}
}
/*
mut pkg := ''
/*
mut pkg := ''
if parent == 'array' {
pkg = 'builtin'
}
pkg = 'builtin'
}
*/
datyp := Type {
name: typ