Handle unsafe implicit invoke on array access expression (#1151)

This commit is contained in:
nd
2017-07-07 16:29:11 +02:00
committed by Dmitry Jemerov
parent 8cc9195fae
commit fae8efdc7f
4 changed files with 20 additions and 1 deletions
@@ -0,0 +1,6 @@
// "Replace with safe (?.) call" "true"
// WITH_RUNTIME
val functions: Map<String, () -> Any> = TODO()
fun run(name: String) = functions[name]<caret>()
@@ -0,0 +1,6 @@
// "Replace with safe (?.) call" "true"
// WITH_RUNTIME
val functions: Map<String, () -> Any> = TODO()
fun run(name: String) = functions[name]?.invoke()