#1474 Ensure 'super' only used with slot call

vkuzkokov Mon 4 Apr 2011

Apparently

echo(Obj.super)

is valid Fantom. Basically, super is this used with another type (try [super].typeof).

The real problem is that in JavaScript super is compiled as empty string, which often leads to valid but strangely behaving code.

brian Mon 4 Apr 2011

Promoted to ticket #1474 and assigned to brian

Yeah no need to make that a legal expression. We should restrict super calls to the target of a method call.

brian Fri 27 May 2011

Renamed from super expression to Ensure super only used with slot call

brian Fri 27 May 2011

Ticket resolved in 1.0.59

Decided the simplest fix for this was to trap it in the parser since super must always be followed by dot operator.

Login or Signup to reply.