Bug #21321 closed
Namespaces do not support extending mixins
Added by fxn (Xavier Noria) 6 days ago.
Updated 5 days ago.
Description
The program
module M
end
class C
extend M
end
fails under a namespace with error:
'Kernel#extend': Cannot extend object with refinement (TypeError)
Maybe the root cause is enabling namespaces with RUBY_NAMESPACE=1
.
Related to Bug #21319 : Namespaces do not support including mixins added
I don't think it's really necessary to create a separate ticket for this from #21319 , is it?
@mame (Yusuke Endoh) I was here till 4 AM experimenting with this feature.
To be organized, I reported different things in different tickets. These two could be related, but I don't know it. If they are, they will be closed together.
I was yesterday running a checkout from May 6. Updated the branch now and cannot repro anymore.
Status changed from Open to Closed
cannot repro anymore.
Closing then?
Yes, please, and sorry for the noise.
and sorry for the noise.
It's alright, even if the feature is experimental, the sooner bugs are noticed the better. So thank you for experimenting.
Also available in: Atom
PDF
Like 0
Like 0 Like 0 Like 0 Like 0 Like 0 Like 0 Like 0 Like 0