https://kotlinlang.org logo
Title
p

pablisco

06/15/2018, 9:40 AM
Random thought. Is there a way to make the class generated from a file (i.e.
Something.kt
->
SomethingKt
) extend a particular type? 🤔
n

nfrankel

06/15/2018, 9:43 AM
what is your use-case?
s

spand

06/15/2018, 11:03 AM
If you cannot instantiate it why would you care what classes it extends?
p

pablisco

06/15/2018, 11:33 AM
I was just wondering. It would be handy for interface based injection for example. But I could see it being useful on other places... Maybe for gradle scripts for example
And DSL based scripts in general
By interface injection I mean using extension functions on an interface