Skip to content

Commit 1402adf

Browse files
committed
mention a possiblity to back-deploy reflectable casts
1 parent 218a122 commit 1402adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/NNNN-opt-in-reflection-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ let b: Reflectable = cast(1) // expression can't be implicitly converted to Refl
174174
Some diagnostics and optimizations will also have to be disabled even if conformance is statically visible to the compiler because all casts will have to go through the runtime call.
175175

176176
**Availability checks**
177-
Since reflectable casting will require a new runtime function, it should be gated by availability checks. If a deployment target is lower than supported, an error will be emitted.
177+
Since reflectable casting will require a new runtime function, it should be gated by availability checks. If a deployment target is lower than supported, an error will be emitted. However, it might be possible to embed new runtime functions into a compatibility library for back deployment.
178178

179179

180180
## Source compatibility

0 commit comments

Comments
 (0)