node: remove unlikely check for rvalue super() calls
This commit is contained in:
parent
750bfd9bb2
commit
c580f8a8e1
4
node.go
4
node.go
@ -872,10 +872,6 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error)
|
||||
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)
|
||||
if err != nil {
|
||||
return "", parseErr{n, err}
|
||||
|
Loading…
Reference in New Issue
Block a user