Introduce inspection "replace arrayOf with literal" #KT-17164 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-05-11 13:18:13 +03:00
committed by Mikhail Glukhikh
parent fb9d88315a
commit 9990550429
21 changed files with 259 additions and 2 deletions
@@ -0,0 +1,9 @@
// PROBLEM: none
// ERROR: Type mismatch: inferred type is Int but Array<String> was expected
annotation class Some(val arg: Array<String>)
fun create(x: Int) = x
@Some(arg = <caret>create(123))
class My