You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variables created with the <- operator in a for expression leak outside of the block
foos=[]forfoo<-foosdofooendf|
this will complete foo and foos.
Solution
This function inside _next_ls_private_compiler.ex should be changed so that it treats the call more like def/defp in the case that the last argument is is a keywordlist that has :do in it (has a do block)
In that case, the preceding 'args' are somewhat like parameters rather than arguments.
defpexpand_local(meta,fun,args,state,env)do# A compiler may want to emit a :local_function trace in here.{args,state,env}=expand_list(args,state,env){{fun,meta,args},state,env}end
The text was updated successfully, but these errors were encountered:
Problem
variables created with the
<-
operator in a for expression leak outside of the blockthis will complete
foo
andfoos
.Solution
This function inside
_next_ls_private_compiler.ex
should be changed so that it treats the call more like def/defp in the case that the last argument is is a keywordlist that has:do
in it (has a do block)In that case, the preceding 'args' are somewhat like parameters rather than arguments.
The text was updated successfully, but these errors were encountered: