Skip to content

Commit 244a1f2

Browse files
authored
Fix types in open_existential_addr / value
Result type for `open_existential_addr` should be `$*@opened P`. Similar change for `open_existential_value`
1 parent 041eda1 commit 244a1f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/SIL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4311,7 +4311,7 @@ open_existential_addr
43114311
// type P
43124312
// $*@opened P must be a unique archetype that refers to an opened
43134313
// existential type P.
4314-
// %1 will be of type $*P
4314+
// %1 will be of type $*@opened P
43154315

43164316
Obtains the address of the concrete value inside the existential
43174317
container referenced by ``%0``. The protocol conformances associated
@@ -4334,7 +4334,7 @@ open_existential_value
43344334
// type P
43354335
// $@opened P must be a unique archetype that refers to an opened
43364336
// existential type P.
4337-
// %1 will be of type $P
4337+
// %1 will be of type $@opened P
43384338

43394339
Loadable version of the above: Opens-up the existential
43404340
container associated with ``%0``. The protocol conformances associated

0 commit comments

Comments
 (0)