Q: Does kotlin compiler optimize methods references the same way it optimizes delegated properties? The following code results in two extra classes (which are completely the same) with 7 methods each:
class A {
fun f(value: Int) = 42
}
fun main(args: Array<String>) {
val first = A::f
val second = A::f
}