16866, “mppf”, “chpldoc outputs odd initialization expression for some patterns”, “2020-12-14T21:12:10Z”
Summary of Problem
Certain global variables (or probably fields) with some initialization expressions don’t print out reasonably in the generated docs.
Steps to Reproduce
Source Code:
var a = __primitive("get compiler variable", "CHPL_HOME");
var b = if true then 1 else 2;
var c = for i in 1..10 do i;
var d = forall i in 1..10 do i;
var e = [i in 1..10] i;
Produces docs like this
.. default-domain:: chpl
.. module:: variablepatterns.doc
variablepatterns.doc