diff options
Diffstat (limited to 'test/prism/fixtures/rescue.txt')
-rw-r--r-- | test/prism/fixtures/rescue.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/prism/fixtures/rescue.txt b/test/prism/fixtures/rescue.txt new file mode 100644 index 0000000000..99170fbe0f --- /dev/null +++ b/test/prism/fixtures/rescue.txt @@ -0,0 +1,35 @@ +foo rescue nil + +foo rescue +nil + +tap { break rescue nil } + +tap { next rescue nil } + +return rescue nil + +foo rescue nil || 1 + +foo rescue nil ? 1 : 2 + +begin; a; rescue *b; end + +foo do |x| + bar(y) rescue ArgumentError fail "baz" +end + +if a = foo rescue nil + bar +end + +def some_method = other_method 42 rescue nil + +def a + a b: +rescue +end + +foo if bar rescue baz + +z = x y rescue c d |