TypeScript Version: nightly (2.2.0-dev.20161211)
Code
typeFoo={foo: string,bar?: string};typeX<T>={[KinkeyofT]: any};typeFooX={[KinkeyofFoo]: any};consta: X<Foo>={foo: "foo"};// passedconstb: FooX={foo: "foo"};// failed: property 'bar' is missingExpected behavior:
Both passed or both failed (maybe both passed)
Actual behavior:
Comment in code.
TypeScript Version: nightly (2.2.0-dev.20161211)
Code
Expected behavior:
Both passed or both failed (maybe both passed)
Actual behavior:
Comment in code.