Skip to content

Commit 68ad369

Browse files
committed
Add a hack to avoid type error
1 parent 2cd222a commit 68ad369

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/typeprof/core/ast.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ def self.parse_cpath(raw_node, cref)
356356
return nil
357357
end
358358
end
359-
return cref.cpath + names.reverse
359+
cpath = cref.cpath # annotate
360+
return cpath + names.reverse if cpath
360361
end
361362

362363
def self.parse_rbs(path, src)

0 commit comments

Comments
 (0)