Skip to content

Commit da7dd1b

Browse files
committed
Export symbols for indirectly accessible constructors
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent ee48df5 commit da7dd1b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Generator/Passes/GenerateSymbolsPass.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ private bool NeedsSymbol(Function function)
115115
var method = function as Method;
116116
bool isInImplicitSpecialization;
117117
var declarationContext = function.Namespace;
118-
var @class = declarationContext as Class;
119118
do
120119
{
121120
isInImplicitSpecialization =

src/Generator/Passes/SymbolsCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void WrapConstructor(Method method, string wrapper, string @params)
158158
bool needSubclass = method.Access == AccessSpecifier.Protected || @class.IsAbstract;
159159
if (needSubclass)
160160
{
161-
Write($"extern \"C\" void {wrapper}({signature}) ");
161+
Write($"extern \"C\" {GetExporting()}void {wrapper}({signature}) ");
162162
WriteLine($"{{ ::new ({Helpers.InstanceField}) {wrapper}{method.Namespace.Name}({@params}); }}");
163163
}
164164
else

0 commit comments

Comments
 (0)