Introduce inspection "replace arrayOf with literal" #KT-17164 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fb9d88315a
commit
9990550429
@@ -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
|
||||
Reference in New Issue
Block a user