Project

General

Profile

Actions

Bug #21321

closed

Namespaces do not support extending mixins

Bug #21321: Namespaces do not support extending mixins

Added by fxn (Xavier Noria) 6 months ago. Updated 6 months 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) 6 months ago Actions #1 [ruby-core:121957]

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

Updated by mame (Yusuke Endoh) 6 months ago Actions #2

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

Updated by mame (Yusuke Endoh) 6 months ago Actions #3 [ruby-core:121961]

I don't think it's really necessary to create a separate ticket for this from #21319, is it?

Updated by fxn (Xavier Noria) 6 months ago Actions #4 [ruby-core:121965]

@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) 6 months ago Actions #5 [ruby-core:121971]

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

Updated by byroot (Jean Boussier) 6 months ago Actions #6 [ruby-core:121976]

  • Status changed from Open to Closed

cannot repro anymore.

Closing then?

Updated by fxn (Xavier Noria) 6 months ago Actions #7 [ruby-core:121977]

Yes, please, and sorry for the noise.

Updated by byroot (Jean Boussier) 6 months ago Actions #8 [ruby-core:121978]

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: PDF Atom