1
test_name "#5027: Issue warnings when using dynamic scope"
3
step "Apply dynamic scoping manifest on agents"
4
apply_manifest_on agents, %q{
14
notify { $baz: } # should not generate a warning -- inherited from class c
15
notify { $bar: } # should generate a warning -- uses dynamic scoping
16
notify { $foo: } # should not generate a warning -- comes from top scope
26
step "Verify deprecation warning"
27
fail_test "Deprecation warning not issued" unless
28
stdout.include? 'warning: Dynamic lookup'