From c580f8a8e18ebe440adad94c421135dde6b0d3b9 Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 8 Apr 2020 20:24:59 +1200 Subject: [PATCH] node: remove unlikely check for rvalue super() calls --- node.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/node.go b/node.go index 95aee10..5575ac4 100644 --- a/node.go +++ b/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}