flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Invalid Code generation if Property has same name as Struct [Windows/C#/24.3.7]

Open MJE-GTI opened this issue 1 year ago • 0 comments

The C# Code generation generates invalide Code property in Struct has same name as struct.

a.fbs

struct A {
    a: [ubyte:4];
}

b.fbs

include "./a.fbs";

struct B {
    test: A;
}

I compiled this two files with flatc.exe -o test --csharp --gen-object-api <filename>

The C# Compiler can compile A.cs but not B.cs

MJE-GTI avatar Mar 13 '24 09:03 MJE-GTI