This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
Match templates for trailing closures in functions with multiple parameters #22
Labels
bug
Something isn't working
Currently, templates for trailing closures only match if the closure is the only parameter of the function call. If there are more, the template won't match. For instance:
translates to
If the template had matched, the translation (in the second-to-last line of Kotlin code) would be
g(0) { println(it) }
as the template said.This template works if the
f
function only has one parameter (i.e. if we removed theint
parameter), but not if it has more than one.The text was updated successfully, but these errors were encountered: