File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ # typed: false
2+
3+ # This reproduces a crash where a class inherits from a constant.
4+ # The constant symbol is a static field, not a class/module.
5+ # scip-ruby used to crash when trying to cast this symbol to a ClassOrModuleRef.
6+
7+ Base = Object
8+
9+ class Child < Base
10+ end
Original file line number Diff line number Diff line change 1+ # typed: false
2+
3+ # This reproduces a crash where a class inherits from a constant.
4+ # The constant symbol is a static field, not a class/module.
5+ # scip-ruby used to crash when trying to cast this symbol to a ClassOrModuleRef.
6+
7+ Base = Object
8+ #^^^^ definition [..] Base.
9+ #relation reference=[..] Object#
10+ #^^^^^^^^^^^^^ reference [..] Base.
11+ # ^^^^^^ reference [..] Object#
12+
13+ class Child < Base
14+ # ^^^^^ definition [..] Child#
15+ end
You can’t perform that action at this time.
0 commit comments