fix(codegen): Fixes writing enums (#636)

This commit is contained in:
Kamron Batman 2021-06-02 23:28:49 -07:00 committed by GitHub
parent cc5a8dc4fa
commit e51334cc0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ namespace SerializableMigration
throw new ArgumentException($"Invalid rule applied to property {ruleName}. Expecting {expectedRule}, but received {ruleName}.");
}
source.AppendLine($"{indent}{property.Name} = reader.WriteEnum<{property.Type}>({property.Name});");
source.AppendLine($"{indent}writer.WriteEnum<{property.Type}>({property.Name});");
}
}
}