Actions
Bug #21319
closedNamespaces do not support including mixins
Description
The following program
module M
end
class C
include M
end
fails under a namespace with error
'Module#include': Cannot include refinement (TypeError)
Updated by fxn (Xavier Noria) 5 days ago
Maybe the root cause is enabling namespaces with RUBY_NAMESPACE=1
.
Updated by mame (Yusuke Endoh) 5 days ago
I cannot repro the issue.
# main.rb
ns = Namespace.new
ns.require "./sub"
p :success
# sub.rb
module M
end
class C
include M
end
$ RUBY_NAMESPACE=1 ./miniruby main.rb
./miniruby: warning: Namespace is experimental, and the behavior may change in the future!
See doc/namespace.md for know issues, etc.
:success
Can you clarify how to reproduce the issue?
Updated by mame (Yusuke Endoh) 5 days ago
- Related to Bug #21321: Namespaces do not support extending mixins added
Updated by fxn (Xavier Noria) 5 days ago
I was yesterday running a checkout from May 6. Updated the branch now and cannot repro anymore.
Actions
Like0
Like0Like0Like0Like0Like0