groostav
04/23/2016, 9:10 PMclass Something{
interface Factory { fun create() : Something }
//...
}
is there a way for me to use SAM conversion to convert a closure to a Something.Factory
instance?
ie, can i do
val x : Something.Factory = { Something(); }
?