Skip to content

[BUG] Tilde syntax does not properly generate promote_scalar for array arguments #1337

Description

@spinkney

This compiles in cmdstan version 2.32.2:

functions {
real test(data array[] real k) {
  return 1.;
  }
}
data {
  int<lower=0> N;
}
transformed data {
   array[0] int x_i;
}
parameters {
  real x;
}
model {
  real z = test(x_i);
  x ~ std_normal();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions