issue 06
This commit is contained in:
@@ -964,8 +964,8 @@ pub const Parser = struct {
|
||||
}
|
||||
self.advance();
|
||||
|
||||
// Target type name
|
||||
if (self.current.tag != .identifier) {
|
||||
// Target type name (identifiers like s64, or keywords like f32/f64)
|
||||
if (self.current.tag != .identifier and !self.current.tag.isTypeKeyword()) {
|
||||
return self.fail("expected type name after 'for'");
|
||||
}
|
||||
const target_type = self.tokenSlice(self.current);
|
||||
|
||||
Reference in New Issue
Block a user