D-Programming-Language/dmd — pull request #824 by donc (2012-03-22 21:51:02+00:00)
Title: Fix issue 7745 Regression(2.059beta) Methods defined in external object ...

...files when a pointer to it is taken

This regression was caused by the fix to regression 4820. As well as the test for this bug, I added a nasty test case of bug 4820 to the test suite, since they are closely related.
I'm not sure if the question of which object file should own the function belongs here. Perhaps it should be in func::toObjFile.

[Not completely tested, wait until this passes the pull tester],