Bug #21321
closedNamespaces do not support extending mixins
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)
Updated by fxn (Xavier Noria) 10 months ago
Maybe the root cause is enabling namespaces with RUBY_NAMESPACE=1.
Updated by mame (Yusuke Endoh) 10 months ago
- Related to Bug #21319: Namespaces do not support including mixins added
Updated by mame (Yusuke Endoh) 10 months ago
I don't think it's really necessary to create a separate ticket for this from #21319, is it?
Updated by fxn (Xavier Noria) 10 months ago
@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.
Updated by fxn (Xavier Noria) 10 months ago
I was yesterday running a checkout from May 6. Updated the branch now and cannot repro anymore.
Updated by byroot (Jean Boussier) 10 months ago
- Status changed from Open to Closed
cannot repro anymore.
Closing then?
Updated by fxn (Xavier Noria) 10 months ago
Yes, please, and sorry for the noise.
Updated by byroot (Jean Boussier) 10 months ago
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.