## test.pp
class a {
$foo = "a"
}
class b inherits a {
$foo = "b"
notice("class b: ${foo}")
}
class c inherits a {
notice("class c: ${foo}")
}
include c
include b
## running a test
% puppet test.pp
notice: Scope(Class[c]): class c: a
notice: Scope(Class[b]): class b: b