Move out of Companion Object: Warn if traget class already contains function with the same signature
#KT-13877 Fixed
This commit is contained in:
@@ -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){}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user