From 4b280a8331e32f2d1fb5fa933f7c5fd90950fda9 Mon Sep 17 00:00:00 2001 From: Carlo Teubner Date: Sun, 21 Jun 2026 11:12:32 +0100 Subject: [PATCH] Copilot instructions: tell it about new(EXPR) form Tell Copilot about this new Go feature. Signed-off-by: Carlo Teubner --- .github/copilot-instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7e474ca8fb..e27cd9af89 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -167,6 +167,7 @@ assumption from this document. In particular, do not raise any of the following were already per-iteration before 1.22.) - **`min`, `max`, and `clear` builtins**, and other features introduced up to the toolchain's version. +- **`new(x)`** where `x` is an expression rather than a type. If you believe a construct fails to compile, prefer assuming it is valid modern Go rather than reporting a build error based on an older language version.