-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
260 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
. | ||
--ignore=vendor/ | ||
--ignore=test/spoom/cfg/fixtures | ||
--ignore=test/spoom/cfg_sorbet | ||
--enable-experimental-requires-ancestor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
# typed: true | ||
# frozen_string_literal: true | ||
# typed: true | ||
|
||
begin | ||
rescue MyException.new.class => e | ||
puts e | ||
class C | ||
def test(x) | ||
begin | ||
true | ||
rescue | ||
begin | ||
false | ||
rescue | ||
raise if x | ||
true | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
|
||
bb#2 | ||
<self>.puts("inside") | ||
-> bb#1 | ||
|
||
bb#3 | ||
<self>.foo() | ||
ex | ||
<self>.puts("rescue") | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
begin | ||
puts "inside" | ||
rescue foo => ex | ||
puts "rescue" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
|
||
bb#2 | ||
<self>.puts("inside") | ||
-> bb#1 | ||
|
||
bb#3 | ||
@ex | ||
<self>.puts("rescue") | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
begin | ||
puts "inside" | ||
rescue => @ex | ||
puts "rescue" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#4 | ||
-> bb#6 | ||
|
||
bb#2 | ||
return | ||
-> bb#1 | ||
|
||
bb#4 | ||
return | ||
-> bb#1 | ||
|
||
bb#6 | ||
return | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
begin | ||
return | ||
rescue | ||
return | ||
rescue | ||
return | ||
end | ||
|
||
puts "after" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
|
||
bb#2 | ||
<self>.meth() | ||
-> bb#1 | ||
|
||
bb#3 | ||
*untyped_exceptions | ||
e | ||
T.reveal_type(e) | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
begin | ||
meth | ||
rescue *untyped_exceptions => e | ||
T.reveal_type(e) # error: Revealed type: `Exception` | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
|
||
bb#2 | ||
<self>.puts("inside") | ||
-> bb#1 | ||
|
||
bb#3 | ||
ex | ||
<self>.puts("rescue") | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
begin | ||
puts "inside" | ||
rescue => ex | ||
puts "rescue" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
def foo | ||
-> bb#1 | ||
|
||
bb#1 | ||
|
||
cfg: foo | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
-> bb#4 | ||
|
||
bb#2 | ||
<self>.puts("body") | ||
-> bb#1 | ||
|
||
bb#3 | ||
<self>.puts("rescue1") | ||
-> bb#1 | ||
|
||
bb#4 | ||
<self>.puts("rescue2") | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
def foo | ||
puts "body" | ||
rescue | ||
puts "rescue1" | ||
rescue | ||
puts "rescue2" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cfg: <main> | ||
|
||
bb#0 | ||
def multiple_rescue_classes | ||
-> bb#1 | ||
|
||
bb#1 | ||
|
||
cfg: multiple_rescue_classes | ||
|
||
bb#0 | ||
-> bb#2 | ||
-> bb#3 | ||
|
||
bb#2 | ||
<self>.putts("body") | ||
-> bb#1 | ||
|
||
bb#3 | ||
Foo | ||
Bar | ||
baz | ||
<self>.putts("rescue") | ||
-> bb#1 | ||
|
||
bb#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def multiple_rescue_classes | ||
putts "body" | ||
rescue Foo, Bar => baz | ||
putts "rescue" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.