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
print(typeOf<check>()) should print something that means void Function(dynamic), because the meaning of the raw type check is check<dynamic> (using i2b), and that matches the reported printout (dynamic) => void.
print(capturedTypeArgument) should print something that means void Function(Never), which is again a match for (Never) => void. The latter is the greatest closure of void Function(_) with respect to {_} (the set that just contains _), as it should be.
We did have discussions about the initial values for type variables used in the i2b algorithm, and we did consider using the bottom type as the initial value corresponding to a contravariant type parameter, but we ended up using the declared bound with dynamic as the default value.
Dart SDK version: 2.12.0-29.0.dev (dev) (Mon Nov 9 06:42:00 2020 -0800) on "windows_x64"
Here is a source code example:
Seems like
Never
should be substituted as a bound for thecheck
andcapturedTypeArgument
here, however this is not so and sample output is:The text was updated successfully, but these errors were encountered: