Skip to content

Commit 146940a

Browse files
committed
New modularity language import
1 parent 5eceb36 commit 146940a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ object language:
9191
@compileTimeOnly("`into` can only be used at compile time in import statements")
9292
object into
9393

94+
/** Experimental support for new features for better modularity, including
95+
* - better tracking of dependencies through classes
96+
* - better usability of context bounds
97+
* - better syntax and conventions for type classes
98+
* - ability to merge exported types in intersections
99+
*
100+
* @see [[https://dotty.epfl.ch/docs/reference/experimental/modularity]]
101+
*/
102+
@compileTimeOnly("`modularity` can only be used at compile time in import statements")
103+
object modularity
104+
94105
/** Was needed to add support for relaxed imports of extension methods.
95106
* The language import is no longer needed as this is now a standard feature since SIP was accepted.
96107
* @see [[http://dotty.epfl.ch/docs/reference/contextual/extension-methods]]

0 commit comments

Comments
 (0)