module Mod {
export class Clas {
static func() {
}
}
}
//fail
var f = Mod.Clas.func;
declare function some_function(val: any);
//fail
some_function(Mod.Clas.func);
Gives this:
namespace Mod {
class Clas {
public static function func() {
}
}
}
namespace {
//fail
$f = (new \ReflectionMethod(\Mod\Clas, 'func'))->getClosure(\Mod\Clas);
//fail
some_function(\Mod\Clas\func);
}
This:
Gives this: