Open alashworth opened 5 years ago
Comment by bob-carpenter Tuesday May 08, 2018 at 03:12 GMT
Thanks---the message should definitely be improved. The plan is to relax the language to allow that to be legal, but until then, there needs to be a better message.
Comment by VMatthijs Thursday Dec 13, 2018 at 12:49 GMT
Mixing var decls and statements in any order is now allowed in stanc3, in case that addresses the issue.
Issue by yizhang-cae Monday May 07, 2018 at 03:31 GMT Originally opened as https://github.com/stan-dev/stan/issues/2523
Summary:
When declare after assignment the msg is not informative.
Description:
When declare after assignment the error msg is
variable xxx does not exitst
wherexxx
is the type name of the declared variable. This is not informative to beginners.Reproducible Steps:
make
a model with the followingtransformed data
Current Output:
Expected Output:
More informative information on the order of declaration & assignment.
Current Version:
v2.17.1