From 103031246bee9b76cdaf2cda571ac41172bd9cb7 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 25 Mar 2021 09:31:13 +0100 Subject: [PATCH] Correct condition when inline is not treted as a modifier in docs Fixes #11860 --- docs/docs/reference/soft-modifier.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/soft-modifier.md b/docs/docs/reference/soft-modifier.md index d024bb3df603..1097eccec9ff 100644 --- a/docs/docs/reference/soft-modifier.md +++ b/docs/docs/reference/soft-modifier.md @@ -11,7 +11,7 @@ A soft modifier is treated as potential modifier of a definition if it is follow Otherwise, soft keywords are treated specially in the following situations: - - `inline`, if it is followed by `if`, `match`, or a parameter definition. + - `inline`, if it is followed by any token that can start an expression. - `derives`, if it appears after an extension clause or after the name and possibly parameters of a class, trait, object, or enum definition. - `end`, if it appears at the start of a line following a statement (i.e. definition or toplevel expression)