mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
orm: declare missing functions to handle literal types (#16627)
This commit is contained in:
parent
b6c2aab092
commit
1ba1f99b9c
3 changed files with 49 additions and 0 deletions
|
@ -562,6 +562,16 @@ pub fn int_to_primitive(b int) Primitive {
|
|||
return Primitive(b)
|
||||
}
|
||||
|
||||
// int_literal_to_primitive handles int literal value
|
||||
pub fn int_literal_to_primitive(b int) Primitive {
|
||||
return Primitive(b)
|
||||
}
|
||||
|
||||
// float_literal_to_primitive handles float literal value
|
||||
pub fn float_literal_to_primitive(b f64) Primitive {
|
||||
return Primitive(b)
|
||||
}
|
||||
|
||||
pub fn i64_to_primitive(b i64) Primitive {
|
||||
return Primitive(b)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue