From c57b613582c034043e8a1f0a4c81fc4ad819c6e5 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 13:18:20 +0200 Subject: [PATCH] Move QuicRealtimeServeConfig to the file's type-declaration tail Program.cs is a top-level-statements file: every type declaration (the existing ServeConfig, DialConfig and friends) lives after every top-level statement and local function, all clustered at the end. The new record landed between two local functions instead, which is CS8803: "top-level statements must precede namespace and type declarations." Moved beside DialConfig, where its neighbors already live. Found by a direct `dotnet build` run on Yggdrasil after the interop test's own error message was truncated by Node's console printing before reaching the actual compiler diagnostic. Co-Authored-By: Claude Sonnet 5 --- tests/GameCult.Networking.InteropPeer/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GameCult.Networking.InteropPeer/Program.cs b/tests/GameCult.Networking.InteropPeer/Program.cs index a7d96139..b4c7870e 100644 --- a/tests/GameCult.Networking.InteropPeer/Program.cs +++ b/tests/GameCult.Networking.InteropPeer/Program.cs @@ -1301,8 +1301,6 @@ static X509Certificate2 CreateQuicInteropCertificate() return X509CertificateLoader.LoadPkcs12(generated.Export(X509ContentType.Pfx), null); } -sealed record QuicRealtimeServeConfig(int Port, int Frames, string Delivery, int IntervalMs); - static Dictionary ParseArgs(string[] args) { var parsed = new Dictionary(StringComparer.OrdinalIgnoreCase); @@ -1537,6 +1535,8 @@ sealed record DialConfig( int? TargetRudpPort, string SchemaPath); +sealed record QuicRealtimeServeConfig(int Port, int Frames, string Delivery, int IntervalMs); + static class InteropPeerShared { public const string InteropDocumentType = "cultnet.interop-note";