mirror of
https://github.com/vlang/v.git
synced 2025-09-09 23:39:39 -04:00
ast: fix error in is_int() (#19551)
This commit is contained in:
parent
2332c17bea
commit
02434807f3
@ -984,7 +984,7 @@ pub fn (t &TypeSymbol) is_int() bool {
|
|||||||
res := t.kind in [.i8, .i16, .int, .i64, .i32, .isize, .u8, .u16, .u32, .u64, .usize,
|
res := t.kind in [.i8, .i16, .int, .i64, .i32, .isize, .u8, .u16, .u32, .u64, .usize,
|
||||||
.int_literal, .rune]
|
.int_literal, .rune]
|
||||||
if !res && t.kind == .alias {
|
if !res && t.kind == .alias {
|
||||||
return (t.info as Alias).parent_type.is_number()
|
return (t.info as Alias).parent_type.is_int()
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user