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:
@@ -15,6 +15,8 @@ class A(val s1: String, val s2: String) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// TODO: uncomment when callable references to object members are supported
|
||||
class AWithCompanion {
|
||||
companion object {
|
||||
@JvmField public val publicField = "1";
|
||||
@@ -26,10 +28,11 @@ class AWithCompanion {
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
fun box(): String {
|
||||
A("1", "2").testAccessors()
|
||||
AWithCompanion.testAccessors()
|
||||
// AWithCompanion.testAccessors()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user