Skip to content

Commit 9145c90

Browse files
committed
fix: under the new library, scala.Predef has summon in source
1 parent 545fb35 commit 9145c90

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/neg/no-patches.check

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
-- [E008] Not Found Error: tests/neg/no-patches.scala:3:23 -------------------------------------------------------------
1+
Flag -Yno-stdlib-patches set repeatedly
2+
-- Error: tests/neg/no-patches.scala:3:23 ------------------------------------------------------------------------------
23
3 |val _ = scala.language.`3.4` // error: we do not patch `scala.language`
34
| ^^^^^^^^^^^^^^^^^^^^
4-
| value 3.4 is not a member of object language
5-
-- [E008] Not Found Error: tests/neg/no-patches.scala:4:36 -------------------------------------------------------------
5+
| `3.4` can only be used at compile time in import statements
6+
-- Error: tests/neg/no-patches.scala:4:36 ------------------------------------------------------------------------------
67
4 |val _ = scala.language.experimental.modularity // error: we do not patch `scala.language.experimental`
78
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8-
| value modularity is not a member of object language.experimental
9-
-- [E008] Not Found Error: tests/neg/no-patches.scala:5:15 -------------------------------------------------------------
10-
5 |val _ = Predef.summon[DummyImplicit] // error: we do not patch `scala.Predef`
11-
| ^^^^^^^^^^^^^
12-
| value summon is not a member of object Predef
9+
| `modularity` can only be used at compile time in import statements

tests/neg/no-patches.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
val _ = scala.language.`3.4` // error: we do not patch `scala.language`
44
val _ = scala.language.experimental.modularity // error: we do not patch `scala.language.experimental`
5-
val _ = Predef.summon[DummyImplicit] // error: we do not patch `scala.Predef`

0 commit comments

Comments
 (0)