Fix error by linter

This commit is contained in:
Masaaki Goshima 2021-03-19 23:55:01 +09:00
parent b2bbd63168
commit ef29061807
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,12 @@ func compileHead(ctx *compileContext) (*Opcode, error) {
return compileBoolPtr(ctx) return compileBoolPtr(ctx)
} }
return compileBool(ctx) return compileBool(ctx)
case reflect.Interface:
ctx := ctx.withType(typ)
if isPtr {
return compileInterfacePtr(ctx)
}
return compileInterface(ctx)
default: default:
if isPtr && typ.Implements(marshalTextType) { if isPtr && typ.Implements(marshalTextType) {
typ = orgType typ = orgType