Intentions: Forbid conversion of vararg parameter to receiver

This commit is contained in:
Alexey Sedunov
2015-02-20 16:09:19 +03:00
parent 2af83c58c9
commit 8e2b0875c2
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
fun foo(<caret>vararg s: String): Boolean = true
fun test() {
foo()
foo("1")
foo("1", "2")
}