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