Closed
Description
Describe the Bug
Using a negative value with the Integer type assertion on a class causes a rather surprising pops error.
Example code which triggers the error:
Integer[-1] $slowlog_log_slower_than = 10000,
from
causes
error during compilation: The parameter '$slowlog_log_slower_than' must be a literal type, not a Puppet::Pops::Model::AccessExpression (file: /home/jhoblitt/github/lsst-control/spec/fixtures/modules/redis/manifests/init.pp, line: 432, column: 15) on node foreman.cp.lsst.org
Expected Behavior
I expect my battleship to float!
Steps to Reproduce
Steps to reproduce the behavior:
- configure CI with a pessimistic version constraint which allows 7.29.0
- have code which uses
Integer[<a filthy no good negative integer>]
- run ci
Environment
- Version 7.29.0
- gha ubuntu latest runner