[Issue 2500] template struct methods are left unresolved if imported from multiple modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 11 00:17:34 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2500





------- Comment #3 from bugzilla at digitalmars.com  2008-12-11 02:17 -------
What's happening is A.d thinks that T!(int) is instantiated by B, and B thinks
it is instantiated in A. (T!(A) can be T!(int), the A just confuses things.)
The workaround is:

1. compile A and B on the same command, instead of separately.

2. structure A and B so they don't import each other.


-- 



More information about the Digitalmars-d-bugs mailing list