You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a function getProcessedTypeCount() defined in Shared
I would like to use this function both in Generator and Checks
Hence I would like a diamond-shaped include hierarchy:
Generator includes Shared
Checks includes Shared
Output includes both Generator and Checks
But I can't do it due to "definition conflicts with previous value" and "ambiguous use of 'getProcessedTypeCount()'" errors.
I have tried these things:
include Shared only in Generator → "use of unresolved identifier 'getProcessedTypeCount'" error in Checks
include Shared neither in Generator nor in Checks, include it only in Output → "use of unresolved identifier 'getProcessedTypeCount'" error
Is there an equivalent of header include guards or #pragma once in Sourcery?
Or any other workaround?
Or any plan to include this feature in future versions of Sourcery?
Automatic resolution of ambiguous symbol definitions would be nice :-)
The text was updated successfully, but these errors were encountered:
I have 4 .swifttemplate files:
contains code only
contains code only
contains code only
outputs to a .swift file
There is a function getProcessedTypeCount() defined in Shared
I would like to use this function both in Generator and Checks
Hence I would like a diamond-shaped include hierarchy:
But I can't do it due to "definition conflicts with previous value" and "ambiguous use of 'getProcessedTypeCount()'" errors.
I have tried these things:
Is there an equivalent of header include guards or
#pragma once
in Sourcery?Or any other workaround?
Or any plan to include this feature in future versions of Sourcery?
Automatic resolution of ambiguous symbol definitions would be nice :-)
The text was updated successfully, but these errors were encountered: