Skip to content

Commit f20c5f5

Browse files
authored
Merge pull request #11890 from dotty-staging/fix-11860
Correct condition when inline is not treated as a modifier in docs
2 parents 480cc0f + 1030312 commit f20c5f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/soft-modifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A soft modifier is treated as potential modifier of a definition if it is follow
1111

1212
Otherwise, soft keywords are treated specially in the following situations:
1313

14-
- `inline`, if it is followed by `if`, `match`, or a parameter definition.
14+
- `inline`, if it is followed by any token that can start an expression.
1515
- `derives`, if it appears after an extension clause or after
1616
the name and possibly parameters of a class, trait, object, or enum definition.
1717
- `end`, if it appears at the start of a line following a statement (i.e. definition or toplevel expression)

0 commit comments

Comments
 (0)