I have the following code which simply returns an error.
class Foo { public static logBar(a: T): T { console.log(a); return a