We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648665d commit d1290f1Copy full SHA for d1290f1
docs/_docs/internals/cc/alternatives-to-sealed.md
@@ -19,6 +19,13 @@ A capture checking variant
19
prevent the formation. This strictness is necessary to ensure soundness
20
of the modified (Var) rule described below.
21
22
+ NOTE: This restrictions might make things difficult. For instance,
23
+ we want to have:
24
+
25
+ A^ -> B <: A^{x} -> B
26
27
+ but with the rule above this no longer holds.
28
29
- To compensate, and allow capture polymorphism in e.g. function arguments, we allow
30
some subcapture slack to covariant cap when comparing the types of actual and expected types
31
after rechecking. This has to be done selectively, so that the following are still guaranteed:
0 commit comments