mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
expression: set floats as f64 by default
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
fn test_fixed_array_can_be_assigned(){
|
||||
x := 2.32
|
||||
mut v := [8]f32
|
||||
mut v := [8]f64
|
||||
v = [1.0, x, 3.0,4.0,5.0,6.0,7.0,8.0]!!
|
||||
assert v[1] == x
|
||||
}
|
||||
@ -15,7 +15,7 @@ fn test_fixed_array_can_be_used_in_declaration(){
|
||||
|
||||
struct Context {
|
||||
pub mut:
|
||||
vb [8]f32
|
||||
vb [8]f64
|
||||
}
|
||||
fn test_fixed_array_can_be_assigned_to_a_struct_field(){
|
||||
mut ctx := Context{}
|
||||
|
Reference in New Issue
Block a user