Skip to content

Commit 1b17ba2

Browse files
committed
cleanups to revert scala#7130
1 parent 1b3a263 commit 1b17ba2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
766766
val isExtension = tree.hasType && tree.symbol.is(Extension)
767767
withEnclosingDef(tree) {
768768
val (prefix, vparamss) =
769-
if(isExtension) (defKeyword ~~ paramsText(tree.vparamss.head) ~~ valDefText(nameIdText(tree)), tree.vparamss.tail)
769+
if (isExtension) (defKeyword ~~ paramsText(tree.vparamss.head) ~~ valDefText(nameIdText(tree)), tree.vparamss.tail)
770770
else (defKeyword ~~ valDefText(nameIdText(tree)), tree.vparamss)
771771

772772
addVparamssText(prefix ~ tparamsText(tree.tparams), vparamss) ~

tests/run/type-propagation.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
object Test extends App {
2-
def foo: String = {
2+
def foo: String =
33
"abc".asInstanceOf
4-
}
54

65
assert(foo == "abc")
76
}

0 commit comments

Comments
 (0)