With the proper annotations, it works as you expect:
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// @use_closure_library true
// ==/ClosureCompiler==
/** @constructor */
var Animal = function(a) {
this.name = a
};
/** @constructor
@extends {Animal} */
var Mamal = function(a) {
Animal.call(this, a)
};
goog.inherits(Mamal, Animal);
/** @constructor
@extends {Mamal} */
var Human = function(a) {
Mamal.call(this, a)
};
goog.inherits(Human, Mamal);
console.log("Hello out there.");
I was playing around with stuff, not sure if all the changes are
necessary. But at
http://closure-compiler.appspot.com/home this
reduces down to the console.log.