Hi guys, someone know if it's possible to create an extension function for "dynamic" ?
g
gildor
10/08/2018, 8:15 AM
Maybe just use extension function for
Any?
c
coletz
10/08/2018, 9:16 AM
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
gildor
10/09/2018, 5:15 AM
Are you sure that you have proper import?
c
coletz
10/09/2018, 2:44 PM
Pretty sure everything is correct
r
r4zzz4k
10/10/2018, 5:49 AM
Isn't
dynamic
exactly about translating everything you do with it directly into JavaScript, so extensions on it sound a bit odd?
c
coletz
10/11/2018, 7:21 AM
AFAIK yes, that's why also .let or other stuff aren't working without a cast
r
r4zzz4k
10/13/2018, 8:13 AM
Hey, totally random finding: there is an annotation called