var foo = "variable"; class Foo { method() { print foo; } } Foo().method(); // out: variable