Skip to content

Commit 76df8d9

Browse files
authored
Bring back experimental.relaxedExtensionImports language import (#18643)
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?
2 parents 48bb59c + d7e2d75 commit 76df8d9

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)