# Revision history [back]

### Can't reference variable in superclass

For example, I have some code very similar to this in a module I'm building

class doolittle {
$location1 = '/path/to/location1'$location2 = '/path/to/location2'
}

class doolittle::install {
file { $::location1: ensure => directory } file {$::location2: ensure => directory }
}


But when I run it, it gives me an error

Missing title. The title expression resulted in undef at /etc/puppetlabs/code...


What's the correct way to reference the variables from the superclass in situations like this?