Fix quotes in diagnostic messages

See 8316953259
This commit is contained in:
Alexander Udalov
2016-07-19 17:26:09 +03:00
parent 5948b69679
commit 2a390155a9
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
// ERROR: 'infix' modifier is inapplicable on this function: must have a single value parameter
interface Foo {
infix fun foo(a: Int, b: Int)
}
+1 -1
View File
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
// ERROR: 'infix' modifier is inapplicable on this function: must have a single value parameter
fun foo(x: Foo) {
x.<caret>foo(bar = x)
}
+1 -1
View File
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must be a member of an extension function
// ERROR: 'infix' modifier is inapplicable on this function: must be a member of an extension function
infix fun id(s: String) = s
val x = <caret>id("0").get(0)
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must be a member of an extension function
// ERROR: 'infix' modifier is inapplicable on this function: must be a member of an extension function
package ppp
infix fun foo(p: String){}
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
// ERROR: 'infix' modifier is inapplicable on this function: must have a single value parameter
class Foo {
infix fun foo(x: Int = 0, y: Int = 0) {
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
// ERROR: 'infix' modifier is inapplicable on this function: must have a single value parameter
fun foo(x: Foo) {
x.<caret>foo(1) { it * 2 }
@@ -1,6 +1,6 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must be a member of an extension function
// ERROR: 'infix' modifier is inapplicable on this function: must be a member of an extension function
package demo