mirror of
https://github.com/gnu4cn/ts-learnings.git
synced 2025-01-13 13:50:07 +08:00
test
This commit is contained in:
parent
f041ec5590
commit
61d7438fa0
@ -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;
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user