mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: warn when casting between reference types outside of unsafe
(#7892)
This commit is contained in:
@ -62,8 +62,8 @@ fn test_atof() {
|
||||
|
||||
// special cases
|
||||
mut f1 := f64(0.0)
|
||||
mut ptr := &u64(&f1)
|
||||
ptr = &u64(&f1)
|
||||
mut ptr := unsafe {&u64(&f1)}
|
||||
ptr = unsafe {&u64(&f1)}
|
||||
|
||||
// double_plus_zero
|
||||
f1=0.0
|
||||
|
Reference in New Issue
Block a user