This commit is contained in:
gnu4cn 2019-04-03 17:54:30 +08:00
parent f041ec5590
commit 61d7438fa0

View File

@ -61,7 +61,7 @@ let y = { name: "Alice", location: "Seattle" };
// TSError: Unable to compile TypeScript
// src/main.ts (12,1): Type '{ name: string; location: string; }' is not assignable to type 'Named'.
// Property 'age' is missing in type '{ name: string; location: string; }'. (2322)
// Property 'age' is missing in type '{ name: string; location: string; }'. (2322)
x = y;
```