KT-11769 case with companion function call: error is now detected if companion receiver is stated explicitly

This commit is contained in:
Mikhail Glukhikh
2016-08-09 13:11:04 +03:00
parent 3c002625c6
commit 04f71bccf2
19 changed files with 361 additions and 142 deletions
@@ -0,0 +1,8 @@
enum class EE(val x: Int) {
INSTANCE(Companion.foo()),
ANOTHER(foo());
companion object {
fun foo() = 42
}
}