From 848fcc541bf029b8c08fc000b78e5875205f58be Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Sat, 21 Dec 2024 11:25:02 +0800 Subject: [PATCH] Update compiler/src/dmd/mustuse.d Co-authored-by: Paul Backus --- compiler/src/dmd/mustuse.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/dmd/mustuse.d b/compiler/src/dmd/mustuse.d index 8ad89ebbad4..2dfe2ed5b66 100644 --- a/compiler/src/dmd/mustuse.d +++ b/compiler/src/dmd/mustuse.d @@ -108,8 +108,8 @@ private bool isAssignment(Expression e) } /** - * Returns: true if `e` is - * `(this.field = typeof(this.field).init, this.field.__ctor(arg))` + * Returns: true if `e` is an assignment that's been rewritten to a + * constructor call. */ private bool isCtorAssignment(Expression e) {