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

Allow inheriting from nested classes outside of parent class #18989

Open
dlangBugzillaToGithub opened this issue May 14, 2015 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

Vladimir Panteleev (@CyberShadow) reported this on 2015-05-14T01:38:08Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=14581

CC List

Description

// test.d //
class C
{
    class D
    {
    }
}

class E:C.D
{
}
///////////

test.d(8,1): Error: class test.E is nested within test, but super class D is nested within C
@dlangBugzillaToGithub
Copy link
Author

TeddyBear12311 commented on 2019-08-15T01:00:42Z

Bang? Anyone?

not just nested classes but within functions

void foo()
{
   class C { }
}

C cannot be used. foo could be main.

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