Ticket #2455
In the Java runtime, mixins are reported to be abstract, where as in Javascript they are not:
@Js mixin MyMixin { } ... echo(Env.cur.runtime) echo("MyMixin.isMixin - ${MyMixin#.isMixin}") echo("MyMixin.isAbstract - ${MyMixin#.isAbstract}")
Gives:
java MyMixin.isMixin - true MyMixin.isAbstract - true js MyMixin.isMixin - true MyMixin.isAbstract - false
Ticket promoted to #2455 and assigned to andy
Also note that mixins aren't reported as const in Javascript either:
mixins
const
@Js const mixin MyMixin { } ... echo(Env.cur.runtime) echo("MyMixin.isMixin - ${MyMixin#.isMixin}") echo("MyMixin.isConst - ${MyMixin#.isConst}")
java MyMixin.isMixin - true MyMixin.isConst - true js MyMixin.isMixin - true MyMixin.isConst - false
Ticket resolved in 1.0.68
Fixed - probably a few bugs fixed by this for anyone introspecting mixin types
Login or Signup to reply.
SlimerDude Wed 9 Sep 2015
In the Java runtime, mixins are reported to be abstract, where as in Javascript they are not:
Gives:
andy Wed 9 Sep 2015
Ticket promoted to #2455 and assigned to andy
SlimerDude Mon 21 Sep 2015
Also note that
mixins
aren't reported asconst
in Javascript either:Gives:
andy Tue 22 Sep 2015
Ticket resolved in 1.0.68
Fixed - probably a few bugs fixed by this for anyone introspecting mixin types