public class Test<T> : Attribute
{
}
[Test<byte[]>]
public class Test
{
}
[ValueObject<string>]
public partial class Value;
Vogen will fail to produce source with the error:
0>CSC: Warning CS8785 : Generator 'ValueObjectGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'InvalidCastException' with message 'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.ArrayTypeSymbol' to type 'Microsoft.CodeAnalysis.INamedTypeSymbol'.'.
Describe the bug
Use this code with Vogen installed:
Vogen will fail to produce source with the error: 0>CSC: Warning CS8785 : Generator 'ValueObjectGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'InvalidCastException' with message 'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.ArrayTypeSymbol' to type 'Microsoft.CodeAnalysis.INamedTypeSymbol'.'.
Steps to reproduce
Expected behaviour
Vogen generates source