Check presence of dispatch receiver parameter in modifier checks

Also fix typo in "inapplicable infix" diagnostic message
This commit is contained in:
Alexander Udalov
2016-07-21 15:00:31 +03:00
parent 2a390155a9
commit 9be219b69c
8 changed files with 16 additions and 23 deletions
@@ -1,9 +1,9 @@
// 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 or an extension function
package ppp
infix fun foo(p: String){}
fun main() {
ppp.<caret>foo("")
}
}