Closed Luegg closed 9 years ago
Create views for each possible variance instead of only covariance. E.g. Int :> Any should result in the views +Int %> +Any and -Any %> -Int.
Int :> Any
+Int %> +Any
-Any %> -Int
Also include views like +Nothing %> +_, -_ %> -Nothing and /_ %> /<unknown>.
+Nothing %> +_
-_ %> -Nothing
/_ %> /<unknown>
This refactoring offers the following benefits:
Create views for each possible variance instead of only covariance. E.g.
Int :> Any
should result in the views+Int %> +Any
and-Any %> -Int
.Also include views like
+Nothing %> +_
,-_ %> -Nothing
and/_ %> /<unknown>
.This refactoring offers the following benefits: