2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/contextualTypingOfObjectLiterals2.ts(5,18): error TS2339: Property 'hmm' does not exist on type 'string'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/contextualTypingOfObjectLiterals2.ts (1 errors) ====
|
|
|
|
interface Foo {
|
|
|
|
foo: (t: string) => string;
|
|
|
|
}
|
|
|
|
function f2(args: Foo) { }
|
|
|
|
f2({ foo: s => s.hmm }) // 's' should be 'string', so this should be an error
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'hmm' does not exist on type 'string'.
|