We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reflectiveCalls
1 parent 5f19fcd commit c705186Copy full SHA for c705186
library/src/scala/util/Properties.scala
@@ -149,7 +149,7 @@ private[scala] trait PropertiesTrait {
149
150
/** System.console.isTerminal, or just check for null console on JDK < 22 */
151
private[scala] lazy val consoleIsTerminal: Boolean = {
152
- import language.reflectiveCalls
+ import scala.reflect.Selectable.reflectiveSelectable
153
val console = System.console
154
def isTerminal: Boolean =
155
try console.asInstanceOf[{ def isTerminal(): Boolean }].isTerminal()
0 commit comments