Skip to content

Commit eb10070

Browse files
committed
Fix the output and tuned a few rules.
1 parent 9352c2c commit eb10070

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

output/src/main/scala/fix/Collectionstrawman_v0.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package fix
22

3-
import scala.Predef.{augmentString => _, ArrowAssoc, charWrapper}
4-
3+
import scala.Predef.{augmentString => _, wrapString => _, _}
54
import strawman.collection.{ Iterable, Set, arrayToArrayOps, stringToStringOps }
65
import strawman.collection.immutable.{ ::, HashMap, LazyList, List, Map, Nil, Range, Vector }
76
import strawman.collection.immutable.LazyList.#::
87
import strawman.collection.mutable.ArrayBuffer
9-
108
object Collectionstrawman_v0_List {
119
List(1, 2, 3)
1210
1 :: 2 :: 3 :: Nil

rewrites/src/main/scala/fix/Collectionstrawman_v0.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ case class Collectionstrawman_v0(sctx: SemanticCtx)
4040
}.asPatch
4141

4242
def rewrite(ctx: RewriteCtx): Patch = {
43-
ctx.debugSemanticCtx()
4443
def p(name: String) =
4544
s"scala.Predef.$name" -> s"strawman.collection.immutable.$name"
4645
def s(name: String, rename: Option[String] = None) =
@@ -69,7 +68,8 @@ case class Collectionstrawman_v0(sctx: SemanticCtx)
6968
s("Stream", Some("LazyList")),
7069
s("Traversable", Some("Iterable")),
7170
"scala.Iterable" -> "strawman.collection.Iterable",
72-
s("`#::`"),
71+
"scala.Traversable" -> "strawman.collection.Iterable",
72+
"scala.`#::`" -> "strawman.collection.immutable.LazyList.`#::`",
7373
s("Vector"),
7474
i("Vector"),
7575
m("ArrayBuffer")

0 commit comments

Comments
 (0)