TypeScript/tests/cases/compiler/sigantureIsSubTypeIfTheyAreIdentical.ts
2014-07-12 17:30:19 -07:00

8 lines
220 B
TypeScript

interface ICache {
get<T>(key: string): T;
}
class CacheService implements ICache { // Should not error that property type of get are incomaptible
get<T>(key: string): T {
return undefined;
}
}