From e0f5253e559043d4acfe760458242aab051dcef9 Mon Sep 17 00:00:00 2001 From: "Q. F. Schroll" Date: Sun, 20 Aug 2017 15:44:29 +0200 Subject: [PATCH] Clarification [This question](https://stackoverflow.com/questions/44887077/d-properties-with-two-arguments) on stackoverflow and my personal struggling with the sentence suggests to add clarification. --- spec/function.dd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/function.dd b/spec/function.dd index 9be250a487..6b3b0bf16f 100644 --- a/spec/function.dd +++ b/spec/function.dd @@ -559,7 +559,8 @@ $(H2 $(LNAME2 property-functions, Property Functions)) $(UL $(LI $(D @property) functions cannot be overloaded with non-$(D @property) functions with the same name.) - $(LI $(D @property) functions can only have zero, one or two parameters.) + $(LI $(D @property) functions can only have zero or one parameter if they are non-static members.) + $(LI $(D @property) functions can only have one or two parameters if they are non-members.) $(LI $(D @property) functions cannot have variadic parameters.) $(LI For the expression $(D typeof(exp)) where $(D exp) is an $(D @property) function, the type is the return type of the function, rather than the type of the function.)