You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler complains that T1 is not a wasmtypeInstance.
π Expected behavior
Since T1 extends wasmtypeInstance (based on the generic constraint), T1['type'] should be an allowed structure as well. Ideally, it would return wasmtype because of the inference, but at least a wasmtype as specified in the constraint is a must.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
mapped tupples generic constraints
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
The compiler complains that T1 is not a wasmtypeInstance.
π Expected behavior
Since T1 extends wasmtypeInstance (based on the generic constraint), T1['type'] should be an allowed structure as well. Ideally, it would return wasmtype because of the inference, but at least a wasmtype as specified in the constraint is a must.
The text was updated successfully, but these errors were encountered: