Is it possible to add an extension method that pre...
# announcements
n
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