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

checker: ban any_int/any_float outside buitlin (#7675)

This commit is contained in:
Swastik Baranwal
2020-12-31 17:11:30 +05:30
committed by GitHub
parent 3e44393152
commit a9ab79d301
8 changed files with 88 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ import v.util
import v.pref
// `Any` is a sum type that lists the possible types to be decoded and used.
pub type Any = string | int | i64 | f32 | f64 | any_int | any_float | bool | Null | []Any | map[string]Any
pub type Any = string | int | i64 | f32 | f64 | bool | Null | []Any | map[string]Any
// `Null` struct is a simple representation of the `null` value in JSON.
pub struct Null {

View File

@@ -79,12 +79,6 @@ pub fn (f Any) str() string {
str_f64
}
}
any_int {
return f.str()
}
any_float {
return f.str()
}
bool {
return f.str()
}