@neocompose/cli 0.31.5 → 0.31.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ wrappers.
|
|
|
83
83
|
The marker near the top of `SKILL.md` must exactly match the package version:
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
|
-
<!-- reviewed-through-cli: 0.31.
|
|
86
|
+
<!-- reviewed-through-cli: 0.31.7 -->
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
The quoted version above is checked too, so this instruction cannot go stale
|
|
@@ -287,3 +287,16 @@ class Child(string name) : Base {
|
|
|
287
287
|
Bind generic base arguments explicitly when needed. Reject a subclass that
|
|
288
288
|
omits required base arguments or leaves any inherited required member
|
|
289
289
|
unsettled.
|
|
290
|
+
|
|
291
|
+
Generic constraints may construct another generic from a parameter in the
|
|
292
|
+
same declaration. This preserves the relationship between the parameters in
|
|
293
|
+
source checks, stored initializer replay, and generated C#:
|
|
294
|
+
|
|
295
|
+
```neo
|
|
296
|
+
class PlacedItem<
|
|
297
|
+
TData extends InventoryStackData,
|
|
298
|
+
TItem extends InventoryItem<TData>
|
|
299
|
+
>(TItem item) {
|
|
300
|
+
public TData Data = item.DefaultData.Clone();
|
|
301
|
+
}
|
|
302
|
+
```
|