You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packageexampledeflogLevelDetail(level: Int):String=s"""$level
// the following line is indented using [tab][tab] Sets the global logging level to $level."""
Output
sbt:hello> compile
[info] compiling 1Scala source to /private/tmp/hello/target/scala-3.1.1/classes ...
[error] --Error:/private/tmp/hello/src/main/scala/example/Hello.scala:7:34-----------
[error] 7|Sets the global logging level to $level.
[error] |^
[error] |Incompatible combinations of tabs and spaces in indentation prefixes.
[error] |Previousindent : 2 spaces
[error] |Latestindent : 2 tabs
[error] --Error:/private/tmp/hello/src/main/scala/example/Hello.scala:7:39-----------
[error] 7|Sets the global logging level to $level.
[error] |^
[error] |Incompatible combinations of tabs and spaces in indentation prefixes.
[error] |Previousindent : 2 spaces
[error] |Latestindent : 2 tabs
[error] two errors found
[error] two errors found
Expectation
It compiles. Indentation rules should not apply to lines within multiline string literals.
The text was updated successfully, but these errors were encountered:
Compiler version
3.1.1
Minimized code
Output
Expectation
It compiles. Indentation rules should not apply to lines within multiline string literals.
The text was updated successfully, but these errors were encountered: