diff --git a/src/AST/TypeExtensions.cs b/src/AST/TypeExtensions.cs index 9d7bfe45..f4691cf4 100644 --- a/src/AST/TypeExtensions.cs +++ b/src/AST/TypeExtensions.cs @@ -179,6 +179,10 @@ return replacement.Desugar(); } + var attributedType = t as AttributedType; + if (attributedType != null) + return attributedType.Equivalent.Type.Desugar(); + return t; } diff --git a/tests/CSharpTemp/CSharpTemp.h b/tests/CSharpTemp/CSharpTemp.h index 690e61c4..91ff35f4 100644 --- a/tests/CSharpTemp/CSharpTemp.h +++ b/tests/CSharpTemp/CSharpTemp.h @@ -11,6 +11,7 @@ public: int& operator[](int i); int A; int* (*functionPtrReturnsPtrParam)(); + int (__stdcall *attributedFunctionPtr)(); static const int rename = 5;