HomePhorge

(#14343) Lookup in correct inherited scope
3541db606b13Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14343) Lookup in correct inherited scope

The previous twoscope lookup of the inheritied scope tried to find the
inherited scope by looking up the class_scope() directly. Unfortunately,
this does not work correctly in cases where the inherited scope is
qualified to the topscope (::parent) or where the scope is implicitly
qualified (class a { class b {} class c inherits b {} }).

By using the same mechanism that variables use for looking up scope (the
qualified_scope() method) variable lookup will find a scope consistent
with what qualified variable lookups will find.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU2d83e226dad9: (Maint) Added test for fully qualified variables
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPU3541db606b13: (#14343) Lookup in correct inherited scope (authored by Andrew Parker <andy@puppetlabs.com>).May 24 2012, 1:30 AM