Hi guys, someone know if it's possible to create a...
# javascript
c
Hi guys, someone know if it's possible to create an extension function for "dynamic" ?
g
Maybe just use extension function for
Any?
c
Already tried, it's not working. If I write something like fun Any?.test(){..} and try to invoke .test() on a dynamic obj, it tries to call the javascript function "test" and not the ext fun
g
Are you sure that you have proper import?
c
Pretty sure everything is correct
r
Isn't
dynamic
exactly about translating everything you do with it directly into JavaScript, so extensions on it sound a bit odd?
c
AFAIK yes, that's why also .let or other stuff aren't working without a cast
r
c
well, at least now I know I'm not doing it wrong 🙂