Skip to content

Commit

Permalink
cl: fix initGopPkg GopPackage type
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Dec 23, 2023
1 parent 3a785e9 commit 96ea294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func initGopPkg(ctx *pkgCtx, pkg *gox.Package) {
}
}
if pkg.Types.Scope().Lookup(gopPackage) == nil {
pkg.Types.Scope().Insert(types.NewConst(token.NoPos, pkg.Types, gopPackage, nil, constant.MakeBool(true)))
pkg.Types.Scope().Insert(types.NewConst(token.NoPos, pkg.Types, gopPackage, types.Typ[types.UntypedBool], constant.MakeBool(true)))
}
initThisGopPkg(pkg.Types)
}
Expand Down

0 comments on commit 96ea294

Please sign in to comment.