@@ -1083,6 +1083,18 @@ Semantic error in 'err-jacobian-plusequals-scope3.stan', line 14, column 11 to c
10831083 15: }
10841084 -------------------------------------------------
10851085
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+
10861098The jacobian adjustment can only be applied in the transformed parameters block or in functions ending with _jacobian
10871099[exit 1]
10881100 $ ../../../../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
12451257 -------------------------------------------------
12461258
12471259"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.
12481272[exit 1]
12491273 $ ../../../../install/default/bin/stanc expect_statement_seq_close_brace.stan
12501274Syntax error in 'expect_statement_seq_close_brace.stan', line 6, column 0 to column 0, parsing error:
0 commit comments