KT-11769 case with companion function call: error is now detected if companion receiver is stated explicitly
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
enum class EE(val x: Int) {
|
||||
INSTANCE(Companion.foo()),
|
||||
ANOTHER(foo());
|
||||
|
||||
companion object {
|
||||
fun foo() = 42
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user