Skip to content

Commit d7011f4

Browse files
committed
cleanup
1 parent 3cebace commit d7011f4

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

test/testdata/rbs/crash_toplevel_type_alias.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/testdata/rbs/crash_empty_if_in_class.rb renamed to test/testdata/rbs/empty_if_else_module.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# typed: false
22
# enable-experimental-rbs-comments: true
33

4-
# This test replicates a crash that occurred in rake files.
4+
# This test replicates a crash that occurred in CommentsAssociator.cc when processing rake files.
55
# The crash happens when:
66
# 1. We're inside a class/module (typeAliasAllowedInContext() returns true)
77
# 2. There's an if/unless with an empty branch (body=nullptr, node=nullptr)
@@ -10,7 +10,7 @@
1010
# The RBS type alias comment below is needed to trigger tree walking.
1111
# Without RBS comments, the CommentsAssociator short-circuits and skips the tree.
1212

13-
module CrashReproduction
13+
module EmptyIfInModule
1414
#: type a = Integer
1515

1616
# Empty then branch - if_->then_ is nullptr
@@ -21,7 +21,7 @@ module CrashReproduction
2121
end
2222
end
2323

24-
module AnotherCrash
24+
module EmptyElseInModule
2525
#: type b = String
2626

2727
# Empty else branch - if_->else_ is nullptr

0 commit comments

Comments
 (0)