Skip to content

Commit ffa0b5c

Browse files
committed
Fix transposition of token
1 parent 5660f03 commit ffa0b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/checker/nodebuilder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ func (b *NodeBuilder) createMappedTypeNodeFromType(type_ *Type) *ast.TypeNode {
12931293
}
12941294
var questionToken *ast.Node
12951295
if mapped.declaration.QuestionToken != nil {
1296-
readonlyToken = b.f.NewToken(mapped.declaration.QuestionToken.Kind)
1296+
questionToken = b.f.NewToken(mapped.declaration.QuestionToken.Kind)
12971297
}
12981298
var appropriateConstraintTypeNode *ast.Node
12991299
var newTypeVariable *ast.Node

0 commit comments

Comments
 (0)