Move to Companion Object: Warn if companion object already contains function with the same signature

#KT-13877 Fixed
This commit is contained in:
Alexey Sedunov
2016-09-20 18:01:28 +03:00
parent 72ff5dd2cc
commit 75481c34b4
4 changed files with 31 additions and 2 deletions
@@ -0,0 +1,7 @@
// SHOULD_FAIL_WITH: Companion object already contains function f1(Int)
class Test9{
fun <caret>f1(n: Int){}
companion object{
fun f1(n: Int){}
}
}