Skip to content

Commit 90765e3

Browse files
oderskyallanrenucci
authored andcommitted
Add spec
1 parent 22cd8c1 commit 90765e3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/docs/reference/soft-modifier.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: doc-page
3+
title: Soft Modifiers
4+
---
5+
6+
A soft modifier is one of the identifiers `opaque` and `inline`.
7+
8+
It is treated as a potential modifier of a definition, if it is followed by a hard modifier or a keyword combination starting a definition (`def`, `val`, `var`, `type`, `class`, `case class`, `trait`, `object`, `case object`, `enum`). Between the two words there may be a sequence of newline tokens and soft modifiers.
9+
10+
It is treated as a potential modifier of a parameter binding unless it is followed by `:`.
11+

0 commit comments

Comments
 (0)