Ticket #1474
Apparently
echo(Obj.super)
is valid Fantom. Basically, super is this used with another type (try [super].typeof).
super
this
[super].typeof
The real problem is that in JavaScript super is compiled as empty string, which often leads to valid but strangely behaving code.
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.
Renamed from super expression to Ensure super only used with slot call
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.
vkuzkokov Mon 4 Apr 2011
Apparently
is valid Fantom. Basically,
super
isthis
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 Ensuresuper
only used with slot callbrian 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.