Closed
Description
I noticed in a #4563 comment that RefinedPrinter
only uses SIP-12 syntax in output, even tho that SIP was rejected. That syntax is also accepted in input, which would still be a problem for tool authors trying to support Dotty. I couldn't dig any mention of SIP-12 in the commit logs (but only tried git log -S SIP-12
and git log -G SIP-12
).
Apparently the SIP was born in 2011 and only rejected in 2016 (https://docs.scala-lang.org/sips/minutes/2016-08-16-sip-10th-august-minutes.html), so it shouldn't be surprising this is still in.
Example using while...do
:
sbt:dotty> repl
scala> var i = 0; while i < 5 do { i += 1; println(i) }
1
2
3
4
5
var i: Int = 5