node: remove unlikely check for rvalue super() calls

This commit is contained in:
mappu 2020-04-08 20:24:59 +12:00
parent 750bfd9bb2
commit c580f8a8e1

View File

@ -872,10 +872,6 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error)
return "", parseErr{n, err} return "", parseErr{n, err}
} }
if funcName == "super" {
return "", parseErr{n, fmt.Errorf("Unexpected use of parent constructor in rvalue context")}
}
callParams, err := this.convertFuncCallArgsCommon(n.ArgumentList) callParams, err := this.convertFuncCallArgsCommon(n.ArgumentList)
if err != nil { if err != nil {
return "", parseErr{n, err} return "", parseErr{n, err}