my interface: interface UrlContentRetrieved { ...
# announcements
a
my interface: interface UrlContentRetrieved { fun onUrlContentRetrieved(content: String) } java code: task.setListener(new UrlContentRetrieved() { @Override public void onUrlContentRetrieved(String content) { parseResults(content); } }); is converted to task.listener = UrlContentRetrieved { content -> parseResults(content) } and i got error Error:(31, 25) Interface UrlContentRetrieved does not have constructors
r
amorenew: this should be acceptable
amorenew: do you place source somewhere? Which version kotlin you used?
a
I use 1.2
@radityagumay it's not working
r
let me reproduce it
­čĹĆ 1
a
I posted image of the error
Thank you
r
Your welcome