class Test get fileName as String is shared dirPath = Path.combine(Path.combine(Path.combine(Path.combine(Environment.currentDirectory, '..'), '..'), 'Source'), 'Misc') assert Directory.exists(dirPath) return Path.combine(dirPath, 'hello.cobra') def main is shared using sr = File.openText(.fileName) print sr.readLine assert (sr to ?) is nil using sr = File.openText(.fileName) print sr.readLine assert (sr to ?) is nil Test().useClassVar var _tr as TextReader? def useClassVar assert _tr is nil using _tr = File.openText(.fileName) assert _tr is not nil print _tr.readLine assert _tr is nil