Skip to content

Commit

Permalink
parser: fix nested smart pointer types (like '&&int') have nil 'Token…
Browse files Browse the repository at this point in the history
…' field
  • Loading branch information
mertcandav committed Jan 13, 2025
1 parent f2c3a9e commit eaf854f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/jule/parser/type.jule
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ impl typeBuilder {
}

unsafe fn step(mut self): &ast::Type {
token := self.tokens[*self.i]
mut token := self.tokens[*self.i]
match token.Id {
| token::Id.Ident:
ret self.buildIdent()
Expand All @@ -446,6 +446,7 @@ impl typeBuilder {
ret self.buildSptr()
| token::Id.DblAmper:
ret &ast::Type{
Token: token,
Kind: &ast::SptrType{
Elem: self.buildSptr(),
},
Expand Down

0 comments on commit eaf854f

Please sign in to comment.