"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, this)'" "true"
|
||||
// ERROR: 'infix' modifier is inapplicable on this function
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, this)"))
|
||||
infix fun String.oldFun(p: Int) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, this)'" "true"
|
||||
// ERROR: 'infix' modifier is inapplicable on this function
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, this)"))
|
||||
infix fun String.oldFun(p: Int) {
|
||||
|
||||
Reference in New Issue
Block a user