fix: bug hunt
This commit is contained in:
@@ -437,7 +437,8 @@ parse_type_atom :: proc(parser: ^Parser) -> ast.Type_Syntax {
|
||||
u32(parser.file),
|
||||
!symbol.is_valid(qualifier) && file_hidden_name(parser, name.symbol),
|
||||
)
|
||||
if current(parser).kind == .Bang && peek(parser).kind == .Left_Paren {
|
||||
if token_text(parser, name) == "struct_type" &&
|
||||
current(parser).kind == .Bang && peek(parser).kind == .Left_Paren {
|
||||
advance(parser)
|
||||
if symbol.is_valid(qualifier) {
|
||||
source.add(parser.diagnostics, first.span, "intrinsic calls must be unqualified")
|
||||
@@ -1251,7 +1252,7 @@ is_simple_range_bound :: proc(expr: ast.Expr) -> bool {
|
||||
return true
|
||||
}
|
||||
#partial switch expr.kind {
|
||||
case .Integer, .Float, .String, .Bool, .Name:
|
||||
case .Integer, .Float, .String, .Bool, .Name, .Call, .Cast:
|
||||
return true
|
||||
case:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user