Skip to content

On-the-fly settings in REPL #9802

Closed as not planned
Closed as not planned
@scabug

Description

@scabug

This isn't unreasonable:

$ scala
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_60).
Type in expressions for evaluation. Or try :help.

scala> val x = "hi" ; "$x"
x: String = hi
res0: String = $x

scala> :se -Xlint:missing-interpolator

scala> val x = "hi" ; "$x"
<console>:13: warning: possible missing interpolator: detected interpolated identifier `$x`
        "$x"
        ^
x: String = hi
res1: String = $x

scala> :se -Xlint:-missing-interpolator

scala> val x = "hi" ; "$x"
<console>:13: warning: possible missing interpolator: detected interpolated identifier `$x`
        "$x"
        ^
x: String = hi
res2: String = $x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions