You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Semantic error in 'test.stan', line 1, column 8 to column 37:
-------------------------------------------------
1: model { 1 ~ bernoulli(0.2) T[0, 1.1]; }
^
-------------------------------------------------
Truncation is only defined if distribution has _lcdf and _lccdf functions implemented with appropriate signature.
Summary:
The type checking for truncations in stanc2 does not always work.
Description:
Some models where the truncation bounds should be integers, get accepted even if the bounds are real.
Reproducible Steps:
Try to compile the model
Current Output:
This should throw a type checking error, as the 1.1 should be of type int.
Expected Output:
Instead, it compiles just fine.
Additional Information:
Provide any additional information here.
Current Version:
v2.18.0
The text was updated successfully, but these errors were encountered: