[Issue 10385] New: Colision with module symbols when declared private
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 16 11:54:00 PDT 2013
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 at puremagic.com
ReportedBy: monarchdodra at gmail.com
--- Comment #0 from monarchdodra at 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: -------
More information about the Digitalmars-d-bugs
mailing list