crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Classes using 'extend Module' appearing in Module.includers list

Open docelic opened this issue 4 years ago • 3 comments

Hello, is this a bug?

module M
end
 
class X
  extend M
end
 
{% for e in M.includers %}
  {% puts e %}     #  ==>  prints "X.class"
{% end %}

https://carc.in/#/r/a69r

(If so, the fix should probably include adding a new directive to macros which would purposely list the ones using extend.)

docelic avatar Dec 27 '20 01:12 docelic