Actually you want to write
console.log(@constructor.foo)
in the constructor Bar. (A working example is here .) @constructorPoints to a class ( Bar) that inherits static properties Foo. These properties are not in the instance, which means @from the constructor.
(Yes, it is strange that he @constructor, not @class, but because it obj.constructoris JavaScript-ism, and not the special CoffeeScript syntax.)
: @ . @ . . , CoffeeScript: JavaScript.