@@ -1083,6 +1083,18 @@ Semantic error in 'err-jacobian-plusequals-scope3.stan', line 14, column 11 to c
1083
1083
15: }
1084
1084
-------------------------------------------------
1085
1085
1086
+ The jacobian adjustment can only be applied in the transformed parameters block or in functions ending with _jacobian
1087
+ [exit 1]
1088
+ $ ../../../../install/default/bin/stanc err-jacobian-plusequals-scope4.stan
1089
+ Semantic error in 'err-jacobian-plusequals-scope4.stan', line 8, column 2 to column 17:
1090
+ -------------------------------------------------
1091
+ 6: }
1092
+ 7: transformed data {
1093
+ 8: foo_jacobian();
1094
+ ^
1095
+ 9: }
1096
+ -------------------------------------------------
1097
+
1086
1098
The jacobian adjustment can only be applied in the transformed parameters block or in functions ending with _jacobian
1087
1099
[exit 1]
1088
1100
$ ../../../../install/default/bin/stanc err-minus-types.stan
@@ -1245,6 +1257,18 @@ Syntax error in 'err-transformed-params.stan', line 4, column 0 to column 11, pa
1245
1257
-------------------------------------------------
1246
1258
1247
1259
"transformed parameters {", "model {" or "generated quantities {" expected after end of parameters block.
1260
+ [exit 1]
1261
+ $ ../../../../install/default/bin/stanc err_void_rng_check.stan
1262
+ Semantic error in 'err_void_rng_check.stan', line 8, column 4 to column 17:
1263
+ -------------------------------------------------
1264
+ 6:
1265
+ 7: model {
1266
+ 8: foo_rng(1.0);
1267
+ ^
1268
+ 9: }
1269
+ -------------------------------------------------
1270
+
1271
+ Random number generators are only allowed in transformed data block, generated quantities block or user-defined functions with names ending in _rng.
1248
1272
[exit 1]
1249
1273
$ ../../../../install/default/bin/stanc expect_statement_seq_close_brace.stan
1250
1274
Syntax error in 'expect_statement_seq_close_brace.stan', line 6, column 0 to column 0, parsing error:
0 commit comments