Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Names of module metaclasses do not always end with :Module #11103

Open
HertzDevil opened this issue Aug 18, 2021 · 0 comments
Open

Names of module metaclasses do not always end with :Module #11103

HertzDevil opened this issue Aug 18, 2021 · 0 comments

Comments

@HertzDevil
Copy link
Contributor

The names of non-generic or uninstantiated generic module metaclasses end with :Module instead of .class. However, generic instances still use the latter:

module Foo; end
module Bar(T); end
module Baz(T); include Bar(T); end

{% Foo.class %}              # => Foo:Module
{% Bar.class %}              # => Bar(T):Module
{% Bar(Int32).class %}       # => Bar(Int32).class
{% Baz.ancestors[0].class %} # => Bar(T).class

Is this intentional? If not we should settle with one of them for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant