mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Comptime EmitAddInterface
This commit is contained in:
parent
9f4a75dba3
commit
612368b0f7
6 changed files with 74 additions and 17 deletions
|
@ -210,11 +210,12 @@ namespace Tests
|
|||
}
|
||||
|
||||
Compiler.EmitTypeBody(type, scope $"{SERIALIZE_NAME}{{{serializeBuffer}\n}}\n");
|
||||
Compiler.EmitAddInterface(type, typeof(ISerializable));
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
struct Foo : this(float x, float y), ISerializable
|
||||
struct Foo : this(float x, float y)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue