https://kotlinlang.org logo
#announcements
Title
# announcements
n

nwh

09/07/2018, 8:57 PM
Is it possible to add an extension method that preserves both the original call site and the object being extended? Maybe via
inline
? eg:
Copy code
fun Any.extend() = this; // 'this' is effectively the callsite
fun String.extend() = this; // 'this' is the string, but I want the callsite as well