Project

General

Profile

Actions

Bug #21321

closed

Namespaces do not support extending mixins

Added by fxn (Xavier Noria) 5 days ago. Updated 5 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:121956]

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)

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #21319: Namespaces do not support including mixinsClosedActions

Updated by fxn (Xavier Noria) 5 days ago

Maybe the root cause is enabling namespaces with RUBY_NAMESPACE=1.

Actions #2

Updated by mame (Yusuke Endoh) 5 days ago

  • Related to Bug #21319: Namespaces do not support including mixins added

Updated by mame (Yusuke Endoh) 5 days 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) 5 days 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) 5 days ago

I was yesterday running a checkout from May 6. Updated the branch now and cannot repro anymore.

Updated by byroot (Jean Boussier) 5 days ago

  • Status changed from Open to Closed

cannot repro anymore.

Closing then?

Updated by fxn (Xavier Noria) 5 days ago

Yes, please, and sorry for the noise.

Updated by byroot (Jean Boussier) 5 days 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0