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

checker: disallow using builtin type names for const names (#16599)

This commit is contained in:
Swastik Baranwal
2022-12-06 19:14:25 +05:30
committed by GitHub
parent 5fc7b6d3d6
commit ada8643ac5
8 changed files with 34 additions and 15 deletions

View File

@ -208,7 +208,7 @@ fn pg_type_from_v(typ int) !string {
orm.float[1] {
'DOUBLE PRECISION'
}
orm.string {
orm.type_string {
'TEXT'
}
orm.serial {
@ -274,7 +274,7 @@ fn str_to_primitive(str string, typ int) !orm.Primitive {
orm.type_idx['f64'] {
return orm.Primitive(str.f64())
}
orm.string {
orm.type_string {
return orm.Primitive(str)
}
orm.time {