Skip to content

Commit 29430d6

Browse files
[doc] Dynamic cast of function types needs matching conventions.
1 parent aac0a9a commit 29430d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/DynamicCasting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ Casting from a function type F1 to a function type F2 will succeed iff the follo
299299
* Corresponding arguments have identical types
300300
* The return types are identical
301301
* If F1 is a throwing function type, then F2 must be a throwing function type. If F1 is not throwing, then F2 may be a throwing or non-throwing function type.
302+
* F1 and F2 have the same calling convention.
302303

303304
Note that it is _not_ sufficient for argument and return types to be castable; they must actually be identical.
304305

0 commit comments

Comments
 (0)