alashworth / test-issue-import

0 stars 0 forks source link

integer arrays should be assignable to real arrays #167

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bob-carpenter Sunday Oct 15, 2017 at 22:18 GMT Originally opened as https://github.com/stan-dev/stan/issues/2419


Summary:

I think this should work:

int[3] x = { 1, 2, 3};
real[3] y = x; // FAILS as of Stan 2.17

This is related to #830; it'd be nice to provide full covariance and contravariance through containers for the int to real promotion.

Current Version:

v2.17.0