More precise diagnostic messages about "operator modifier is not applicable"
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: operator modifier is inapplicable on this function: last parameter must not have a default value or be a vararg
|
||||
// ERROR: operator modifier is inapplicable on this function: last parameter should not have a default value or be a vararg
|
||||
|
||||
class C {
|
||||
operator fun set(s: String, vararg value: Int): Boolean = true
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: 'infix' modifier is inapplicable on this function
|
||||
infix fun id(s: String) = s
|
||||
val x = <caret>id("0").get(0)
|
||||
Reference in New Issue
Block a user