Move out of Companion Object: Warn if traget class already contains function with the same signature

#KT-13877 Fixed
This commit is contained in:
Alexey Sedunov
2016-09-30 16:13:52 +03:00
parent 450d31b4bc
commit 074ad6b5f0
3 changed files with 27 additions and 0 deletions
@@ -0,0 +1,7 @@
// SHOULD_FAIL_WITH: Class 'Test' already contains function f1(Int)
class Test {
fun f1(n: Int){}
companion object{
fun <caret>f1(n: Int){}
}
}