Skip to content

Commit

Permalink
Merge pull request #1588 from visualfc/goppkg
Browse files Browse the repository at this point in the history
cl: fix initGopPkg GopPackage type
  • Loading branch information
xushiwei authored Dec 23, 2023
2 parents 3a785e9 + 96ea294 commit ac7cf3a
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 ac7cf3a

Please sign in to comment.