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:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user