Skip to content

Commit 91fc151

Browse files
committed
library: move files that no longer require bootstrapped compiler
Some of them had been sitting here for a long time to work around issues with -sourcepath which should all be fixed now. Also remove non-bootstrapped toExpr which had been deprecated for a while.
1 parent f088d8a commit 91fc151

File tree

9 files changed

+10
-71
lines changed

9 files changed

+10
-71
lines changed

library/src-bootstrapped/scala/quoted/package.scala

Lines changed: 0 additions & 9 deletions
This file was deleted.

library/src-non-bootstrapped/scala/tasty/reflect/TreeUtils.scala

Lines changed: 0 additions & 56 deletions
This file was deleted.

tests/neg/i6762.check

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
-- [E007] Type Mismatch Error: tests/neg/i6762.scala:5:72 --------------------------------------------------------------
2-
5 |def f(word: String)(given QuoteContext): Expr[Foo[G[String]]] = '{Foo(${word.toExpr})} // error
3-
| ^^^^
4-
| Found: quoted.Expr[String]
5-
| Required: quoted.Expr[G[String]]
1+
-- [E007] Type Mismatch Error: tests/neg/i6762.scala:5:77 --------------------------------------------------------------
2+
5 |def f(word: String)(given QuoteContext): Expr[Foo[G[String]]] = '{Foo(${Expr(word)})} // error // error
3+
| ^^^^
4+
| Found: (word : String)
5+
| Required: G[String]
6+
-- Error: tests/neg/i6762.scala:5:82 -----------------------------------------------------------------------------------
7+
5 |def f(word: String)(given QuoteContext): Expr[Foo[G[String]]] = '{Foo(${Expr(word)})} // error // error
8+
| ^
9+
|ambiguous implicit arguments: both method CharIsLiftable in object Liftable and method ByteIsLiftable in object Liftable match type quoted.Liftable[G[String]] of parameter evidence$1 of method apply in object Expr

tests/neg/i6762.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import scala.quoted.{_, given}
22

33
type G[X]
44
case class Foo[T](x: T)
5-
def f(word: String)(given QuoteContext): Expr[Foo[G[String]]] = '{Foo(${word.toExpr})} // error
5+
def f(word: String)(given QuoteContext): Expr[Foo[G[String]]] = '{Foo(${Expr(word)})} // error // error

0 commit comments

Comments
 (0)