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

checker: make sure all FnDecl types are valid

This commit is contained in:
Alexander Medvednikov
2020-04-26 10:39:26 +02:00
parent 3c08f655af
commit 270566055f
2 changed files with 14 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ pub fn (nn u16) hex() string {
if nn == 0 {
return '0'
}
mut n := nn
max := 5
mut buf := malloc(max + 1)
@@ -320,7 +320,7 @@ pub fn (nn u64) hex() string {
if nn == 0 {
return '0'
}
mut n := nn
max := 18
mut buf := malloc(max + 1)
@@ -356,6 +356,8 @@ pub fn (a []byte) contains(val byte) bool {
return false
}
/*
pub fn (c rune) str() string {
fst_byte := int(c)>>8 * 3 & 0xff
len := utf8_char_len(fst_byte)
@@ -369,6 +371,7 @@ pub fn (c rune) str() string {
str.str[len] = `\0`
return str
}
*/
pub fn (c byte) str() string {
mut str := string{