Quick fix for applying spread operator where vararg is expected #KT-6824 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6ae4b42164
commit
44e69d8adc
@@ -0,0 +1,10 @@
|
||||
// "Change 'y' to '*y'" "false"
|
||||
// ACTION: Add 'toString()' call
|
||||
// ACTION: Change parameter 'x' type of function 'foo' to 'Array<String>'
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Create function 'foo'
|
||||
// ERROR: Type mismatch: inferred type is Array<String> but String was expected
|
||||
|
||||
fun foo(x: String) {}
|
||||
|
||||
fun bar(y: Array<String>) = foo(y<caret>)
|
||||
Reference in New Issue
Block a user