@Js class GundamFma { static const |Obj| none := |animBlock| { } }
gives a sys::NotImmutableErr: Func during static initialisation in javascript. Works quite happily in Java.
sys::NotImmutableErr: Func
Any ideas?
That starts to get into the more advanced type reflection for Funcs - which is not 100% flushed out in JavaScript yet. I believe that is due to #1144.
Cool - is there any work around in the mean time? Specifically for the use case above?
Don't use const...
:) D'uh! Oh, yeah! Cheers!
Then again, if they're not const, they can't be static. It kinda goes against what I was trying to achieve, but will work for now.
Login or Signup to reply.
SlimerDude Wed 25 Jul 2012
gives a
sys::NotImmutableErr: Func
during static initialisation in javascript. Works quite happily in Java.Any ideas?
andy Thu 26 Jul 2012
That starts to get into the more advanced type reflection for Funcs - which is not 100% flushed out in JavaScript yet. I believe that is due to #1144.
SlimerDude Thu 26 Jul 2012
Cool - is there any work around in the mean time? Specifically for the use case above?
andy Thu 26 Jul 2012
Don't use const...
SlimerDude Thu 26 Jul 2012
:) D'uh! Oh, yeah! Cheers!
Then again, if they're not const, they can't be static. It kinda goes against what I was trying to achieve, but will work for now.