diff --git a/lua/neogen/configurations/kotlin.lua b/lua/neogen/configurations/kotlin.lua index f376bf7..434498f 100644 --- a/lua/neogen/configurations/kotlin.lua +++ b/lua/neogen/configurations/kotlin.lua @@ -32,6 +32,11 @@ template.data = { } local nodes = nodes_utils:matching_nodes_from(node, tree) local res = extractors:extract_from_matched(nodes) + + -- Force return type as Kotlin parser does not differenciate return types + -- https://github.com/danymat/neogen/issues/78#issuecomment-1062677446 + res[i.Return] = { true } + return res end, },