Prohibit callable references to object members
To be able to make them more useful in the future, i.e. bound to the object instance
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ object Obj {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val f = Obj::foo
|
||||
val f = Obj::class.members.single { it.name == "foo" }
|
||||
|
||||
// Any object method currently requires the object instance passed
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user