Skip to content

return の右項で例外が発生すると try/catch で補足されない。 #1135

@mattn

Description

@mattn
function! s:foo()
  try
    return [] == 0
  catch
    return 0
  endtry
endfunction

echo s:foo()

https://wandbox.org/permlink/LuKXEV6oxhI9PTmv

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions