Emit parameterless constructor for vectors

This commit is contained in:
Simon Lübeß
2024-11-30 16:20:29 +01:00
parent bcf75bf8cb
commit cf1f2a9a7b
+1 -1
View File
@@ -80,7 +80,7 @@ struct VectorAttribute<T, ComponentCount> : Attribute, IComptimeTypeApply where
private void GenerateConstructors(Type type)
{
// Default constructor
//Compiler.EmitTypeBody(type, "public this() => this = default;\n\n");
Compiler.EmitTypeBody(type, "public this() => this = default;\n\n");
// Single constructor
GenerateSingleConstructor(type);