Skip to content

Commit 1d50957

Browse files
committed
Add regression test for inheritance crash
Amp-Thread-ID: https://ampcode.com/threads/T-3ff237da-1bb4-43d1-abb5-989b228d9f59
1 parent c72464e commit 1d50957

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/scip/testdata/inheritance.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ def write_f_plus_1(a)
4747
end
4848
end
4949

50+
Z5 = Object
51+
class Z6 < Z5
52+
end
53+

test/scip/testdata/inheritance.snapshot.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,12 @@ def write_f_plus_1(a)
8989
end
9090
end
9191

92+
Z5 = Object
93+
#^^ definition [..] Z5.
94+
#relation reference=[..] Object#
95+
#^^^^^^^^^^^ reference [..] Z5.
96+
# ^^^^^^ reference [..] Object#
97+
class Z6 < Z5
98+
# ^^ definition [..] Z6#
99+
end
100+

0 commit comments

Comments
 (0)