From 9a27954ad0dcaf6f7b588d61cfebdf15aad57f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Matos?= Date: Sun, 29 Mar 2020 21:41:49 +0100 Subject: [PATCH] Ignore generated field method acessors when processing properties in GetterSetterToProperty. --- src/Generator/Passes/GetterSetterToPropertyPass.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generator/Passes/GetterSetterToPropertyPass.cs b/src/Generator/Passes/GetterSetterToPropertyPass.cs index 1c73c0ed..6a56c52e 100644 --- a/src/Generator/Passes/GetterSetterToPropertyPass.cs +++ b/src/Generator/Passes/GetterSetterToPropertyPass.cs @@ -78,6 +78,7 @@ namespace CppSharp.Passes m.OriginalFunction != null) && m.SynthKind != FunctionSynthKind.DefaultValueOverload && m.SynthKind != FunctionSynthKind.ComplementOperator && + m.SynthKind != FunctionSynthKind.FieldAcessor && !m.ExcludeFromPasses.Contains(typeof(GetterSetterToPropertyPass)))) { if (IsGetter(method))