Returning it in getValue along with the proper val...
# announcements
r
Returning it in getValue along with the proper value seems to be annoying because I can't destruct a Pair at the top level of the class
k
You can keep the delegate in a separate field in your class, like this:
Copy code
class MyClass {
    val delegate = myDelegate()
    val myField: Int by delegate
}
And then you can do whatever you want.