This continues the earlier patch that allowed resource names to be lists of strings so that edges can now allow the same. This also includes a new fancy test!
19 lines
364 B
Plaintext
19 lines
364 B
Plaintext
# this must pass type unification and generate output
|
|
|
|
# single resource
|
|
test "name" {}
|
|
|
|
# single resource, defined by list variable
|
|
$names = ["hey", "there",]
|
|
test $names {}
|
|
|
|
# multiples resources, defined by list
|
|
test ["hello", "world",] {
|
|
Depend => Test[$names],
|
|
}
|
|
|
|
$morenames = ["wow", "cool", "amazing",]
|
|
test $morenames {}
|
|
|
|
Test[$names] -> Test[$morenames]
|