From 700a1cc31c076039c7355c332ff021bac72c29df Mon Sep 17 00:00:00 2001 From: Alireza Habibi Date: Mon, 4 May 2020 21:41:22 +0430 Subject: [PATCH] Permit init-only initialization in attribute usages --- proposals/init.md | 1 + 1 file changed, 1 insertion(+) diff --git a/proposals/init.md b/proposals/init.md index 455c85f41e..a10c3ce876 100644 --- a/proposals/init.md +++ b/proposals/init.md @@ -78,6 +78,7 @@ the following circumstances: - During a `with` expression initializer - Inside an instance constructor of the containing or derived type, on `this` or `base` - Inside the `init` accessor of any property, on `this` or `base` +- Inside attribute usages with named parameters The times above in which the `init` accessors are settable are collectively referred to in this document as the construction phase of the object.