Skip to content

Commit d7e2d75

Browse files
committed
Bring back relaxedExtensionImports import
This is to keep MiMa happy. Not sure what the policy should be. At some point we might want to simply drop the import since it no longer does anything, but maybe we should wait a bit with it?
1 parent 48bb59c commit d7e2d75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ object language:
9090
*/
9191
@compileTimeOnly("`into` can only be used at compile time in import statements")
9292
object into
93+
94+
/** Was needed to add support for relaxed imports of extension methods.
95+
* The language import is no longer needed as this is now a standard feature since SIP was accepted.
96+
* @see [[http://dotty.epfl.ch/docs/reference/contextual/extension-methods]]
97+
*/
98+
@compileTimeOnly("`relaxedExtensionImports` can only be used at compile time in import statements")
99+
@deprecated("The experimental.relaxedExtensionImports language import is no longer needed since the feature is now standard", since = "3.4")
100+
object relaxedExtensionImports
93101
end experimental
94102

95103
/** The deprecated object contains features that are no longer officially suypported in Scala.

0 commit comments

Comments
 (0)