-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10706 from dotty-staging/remove-DottyPredef
- Loading branch information
Showing
14 changed files
with
25 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package test | ||
|
||
import dotty._ | ||
import Predef.{any2stringadd => _, StringAdd => _, _} | ||
|
||
object implicitDefs { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package test | ||
|
||
import dotty._ | ||
import Predef.{any2stringadd => _, StringAdd => _, _} | ||
|
||
object rootImplicits { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import dotty._ | ||
|
||
object Test { | ||
def main(args: Array[String]) = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import scala.quoted._, staging._ | ||
|
||
given Toolbox = Toolbox.make(getClass.getClassLoader) | ||
object Test: | ||
given Toolbox = Toolbox.make(getClass.getClassLoader) | ||
|
||
val f: Array[Int] => Int = run { | ||
val stagedSum: Expr[Array[Int] => Int] = '{ (arr: Array[Int]) => 6 } | ||
println(stagedSum.show) | ||
stagedSum | ||
} | ||
val f: Array[Int] => Int = run { | ||
val stagedSum: Expr[Array[Int] => Int] = '{ (arr: Array[Int]) => 6 } | ||
println(stagedSum.show) | ||
stagedSum | ||
} | ||
|
||
@main | ||
def Test = { | ||
f.apply(Array(1, 2, 3)) // Returns 6 | ||
} | ||
def main(args: Array[String]) = { | ||
f.apply(Array(1, 2, 3)) // Returns 6 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import dotty._ | ||
|
||
case class X2[A, B](a: A, b: B) | ||
case class X3[A, B, C](a: A, b: B, c: C) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import dotty._ | ||
|
||
object Test { | ||
def main(args: Array[String]) = { | ||
|