diff --git a/src/Generator/Passes/CheckIgnoredDecls.cs b/src/Generator/Passes/CheckIgnoredDecls.cs index c6a86f91..33e1aba2 100644 --- a/src/Generator/Passes/CheckIgnoredDecls.cs +++ b/src/Generator/Passes/CheckIgnoredDecls.cs @@ -318,7 +318,8 @@ namespace CppSharp.Passes msg = "ignored"; return true; } - ArrayType arrayType = type as ArrayType; + + var arrayType = type as ArrayType; PrimitiveType primitive; if (arrayType != null && arrayType.SizeType == ArrayType.ArraySize.Constant && !arrayType.Type.Desugar().IsPrimitiveType(out primitive))