Skip to content

Commit d8a9c99

Browse files
amartini51ApolloZhu
andcommitted
Incorporate TR correction
Co-authored-by: Apollo Zhu <[email protected]>
1 parent 88bfa3d commit d8a9c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TSPL.docc/ReferenceManual/Expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,11 +1548,11 @@ When you use a macro as a default value,
15481548
it's type checked without expanding the macro,
15491549
to check the following requirements:
15501550

1551+
- The macro's access level
1552+
is the same as or less restrictive than the function that uses it.
15511553
- The macro either takes no arguments,
15521554
or its arguments are literals without string interpolation.
15531555
- The macro's return type matches the parameter's type.
1554-
- The access level for the macro's return type
1555-
is the same as or less restrictive than the function that uses it.
15561556

15571557
You use macro expressions to call freestanding macros.
15581558
To call an attached macro,

0 commit comments

Comments
 (0)