Feedback
Require Optional for parameters with default values
- Status
- Fixed
- Fixed in
- v26.8.6
- Source discussion
- https://forum.objo.dev/d/942-method-parameters-text-after
- Last updated
- 2026-08-29
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Method parameters can currently specify a default value without the Optional modifier, for example value As String = "text". The declaration is accepted even though default values apply only to optional parameters, leaving a required parameter with a misleading default expression. The compiler should reject this declaration, and Objo Studio should preserve the entered text while displaying the compiler validation message so it can be corrected.