"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
This commit is contained in:
+1
@@ -1,4 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: operator modifier is inapplicable on this function: must have no value parameters
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun unaryPlus(a: Int): Test = Test()
|
||||
|
||||
Reference in New Issue
Block a user