From: "byroot (Jean Boussier) via ruby-core" Date: 2025-05-10T10:11:08+00:00 Subject: [ruby-core:121978] [Ruby Bug#21321] Namespaces do not support extending mixins Issue #21321 has been updated by byroot (Jean Boussier). > 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. ---------------------------------------- Bug #21321: Namespaces do not support extending mixins https://bugs.ruby-lang.org/issues/21321#change-113094 * Author: fxn (Xavier Noria) * Status: Closed * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- The program ```ruby module M end class C extend M end ``` fails under a namespace with error: ``` 'Kernel#extend': Cannot extend object with refinement (TypeError) ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/