lib/rbs/definition.rb in rbs-1.1.1 vs lib/rbs/definition.rb in rbs-1.2.0
- old
+ new
@@ -120,10 +120,10 @@
def comments
@comments ||= _ = defs.map(&:comment).compact
end
def annotations
- @annotations ||= @extra_annotations + defs.flat_map(&:annotations)
+ @annotations ||= @extra_annotations + defs.flat_map {|d| d.annotations }
end
def members
@members ||= defs.map(&:member).uniq
end