This bug does not exist, the second argument should be {}of T, instead of {}as T

This commit is contained in:
vczh
2021-10-13 23:08:32 -07:00
parent 91e0ac43db
commit b08b69d602

View File

@@ -16,7 +16,6 @@ https://zhuanlan.zhihu.com/p/39369370
- Collection literal `{a b c}` should react to the "receiving type" if the receiving type is a known collection type.
- So that it is able to do `DealWithObservableList({1 2 3});`
- `new(name: string, items: observe X^[]) { this.Name = name; this.Items = items; }` doesn't work for `items`.
- `let X = Y in (F(X.a.b.c))` reports `X does not exist in the current scope` in binding property value
- while `F((let X = Y.a.b).c)` works