June 16, 2013 [Issue 10385] New: Colision with module symbols when declared private | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10385 Summary: Colision with module symbols when declared private Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: monarchdodra@gmail.com --- Comment #0 from monarchdodra@gmail.com 2013-06-16 11:53:59 PDT --- Step one, create a module with a class called A: //---- module A_module; class A {} //---- Step two, import the module, and create a template with the parameter A: -------- import A_module; void foo(A)() {} void main() { foo!int(); } -------- This works, but here's the kicker: Make A private, and things blowup: main.d(3): Error: module main A_module.A is private main.d(8): Error: template instance main.foo!(int) error instantiating This is strange behavior on many levels. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 17, 2013 [Issue 10385] Colision with module symbols when declared private | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarchdodra@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=10385 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-06-16 20:56:41 PDT --- *** This issue has been marked as a duplicate of issue 10375 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation