I think that if rebinding the implicit method lookup target is desired, self
should be able to be used as an identifier as discussed here, with the exception that the implicit method lookup is the current overload for the self
identifier.
eg. in
struct Example {
func method() {}
}
struct Main {
func method() {}
func test() {
method() // calls Main.method (via implicit self)
do {
let self = Example()
method() // calls Example.method (via explicit self)
}
}
}