From d4af15816f7fe6617949df0fa5236ce338812531 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sat, 21 Dec 2024 03:52:41 -0300 Subject: [PATCH] Add sample showcasing no namespace is required for ids --- src/StructId.FunctionalTests/NoNs.cs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/StructId.FunctionalTests/NoNs.cs diff --git a/src/StructId.FunctionalTests/NoNs.cs b/src/StructId.FunctionalTests/NoNs.cs new file mode 100644 index 0000000..a0c3559 --- /dev/null +++ b/src/StructId.FunctionalTests/NoNs.cs @@ -0,0 +1,6 @@ +using StructId.Functional; + +// Showcases that types don't need to have a namespace +public partial record struct NoNsId : IStructId; + +public record NoNsProduct(NoNsId Id, string Name); \ No newline at end of file