Merge remote-tracking branch 'gop/main' into q

This commit is contained in:
xushiwei
2024-04-30 08:27:57 +08:00
5 changed files with 46 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ func (b Builder) Const(v constant.Value, typ Type) Expr {
if v == nil {
return prog.Null(typ)
}
switch t := types.Default(typ.t).(type) {
switch t := typ.t.(type) {
case *types.Basic:
kind := t.Kind()
switch {