public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* warning when invoking method on java object
@ 2017-09-17 14:34 Sonny To
  2017-09-17 14:45 ` Sudarshan S Chawathe
  0 siblings, 1 reply; 2+ messages in thread
From: Sonny To @ 2017-09-17 14:34 UTC (permalink / raw)
  To: Kawa mailing list

 (context:startActivity i)

gives a warningi
/dev/stdin:23:2: warning - no known slot 'startActivity' in java.lang.Object

it works but why is it giving a warning?

I could do
((as android.app.Application context):startActivity i)

and not get a warning but its more verbose. what is more idiomatic? I
prefer the former but I am concern about getting warnings.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-17 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-17 14:34 warning when invoking method on java object Sonny To
2017-09-17 14:45 ` Sudarshan S Chawathe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).