Browse Source

Fixed the generated wrappers for attributed function types.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/516/head
Dimitar Dobrev 10 years ago
parent
commit
04547574ba
  1. 4
      src/AST/TypeExtensions.cs
  2. 1
      tests/CSharpTemp/CSharpTemp.h

4
src/AST/TypeExtensions.cs

@ -179,6 +179,10 @@ @@ -179,6 +179,10 @@
return replacement.Desugar();
}
var attributedType = t as AttributedType;
if (attributedType != null)
return attributedType.Equivalent.Type.Desugar();
return t;
}

1
tests/CSharpTemp/CSharpTemp.h

@ -11,6 +11,7 @@ public: @@ -11,6 +11,7 @@ public:
int& operator[](int i);
int A;
int* (*functionPtrReturnsPtrParam)();
int (__stdcall *attributedFunctionPtr)();
static const int rename = 5;

Loading…
Cancel
Save