Skip to content

Commit afb08d8

Browse files
fix csharp codegen
1 parent 23a3b7f commit afb08d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bindings-csharp/Codegen/Module.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ public string GenerateViewDef(uint Index)
12421242
{
12431243
var returnTypeExpr =
12441244
ReturnsQuery && QueryRowTypeBSATNName is { } rowTypeBSATNName
1245-
? $"new global::SpacetimeDB.AlgebraicType.Product([new(\"{QueryViewReturnTag}\", new {rowTypeBSATNName}().GetAlgebraicType(registrar))])"
1245+
? $"new global::SpacetimeDB.BSATN.AlgebraicType.Product([new global::SpacetimeDB.BSATN.AggregateElement(\"{QueryViewReturnTag}\", new {rowTypeBSATNName}().GetAlgebraicType(registrar))])"
12461246
: $"new {ReturnType.BSATNName}().GetAlgebraicType(registrar)";
12471247

12481248
return $$$"""

0 commit comments

Comments
 (0)