Skip to content

Commit

Permalink
update dotty, re-enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Feb 16, 2021
1 parent 7927353 commit 8dff096
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion project/DottySupport.scala
Expand Up @@ -12,7 +12,7 @@ import sbt.librarymanagement.{
* Settings to support validation of TastyUnpickler against the release of dotty with the matching TASTy version
*/
object TastySupport {
val supportedTASTyRelease = "3.0.0-M4-bin-20210214-80befc3-NIGHTLY" // TASTy version 28.0.1
val supportedTASTyRelease = "3.0.0-M4-bin-20210215-53a2dc5-NIGHTLY" // TASTy version 28.0.1
val scala3Compiler = "org.scala-lang" % "scala3-compiler_3.0.0-M4" % supportedTASTyRelease
}

Expand Down
4 changes: 2 additions & 2 deletions test/tasty/run/src-2/tastytest/TestMacroCompat.scala
Expand Up @@ -8,7 +8,7 @@ object TestMacroCompat extends Suite("TestMacroCompat") {

test(assert(testCase(15) === ("15", Position("TestMacroCompat.scala", 9))))
test(assert(constInt("") === 1))
// test(assert(mono === 1))
// test(assert(poly[String] === "String"))
test(assert(mono === 1))
test(assert(poly[String] === "String"))

}
8 changes: 4 additions & 4 deletions test/tasty/run/src-3/tastytest/MacroCompat.scala
Expand Up @@ -11,11 +11,11 @@ object MacroCompat {
inline def constInt[T](x: T): Int = ${ Macros3.constIntImpl[T]('x) }

object Bundles {
// def mono: Int = macro MacroImpl.mono
// inline def mono: Int = ${ Macros3.monoImpl }
def mono: Int = macro MacroImpl.mono
inline def mono: Int = ${ Macros3.monoImpl }

// def poly[T]: String = macro MacroImpl.poly[T]
// inline def poly[T]: String = ${ Macros3.polyImpl[T] }
def poly[T]: String = macro MacroImpl.poly[T]
inline def poly[T]: String = ${ Macros3.polyImpl[T] }
}

def testCase(test: => Any)(implicit pos: Position): (String, Position) =
Expand Down
2 changes: 1 addition & 1 deletion test/tasty/test/scala/tools/tastytest/TastyTestJUnit.scala
Expand Up @@ -76,7 +76,7 @@ import scala.reflect.runtime.ReflectionUtils
object TastyTestJUnit {
final implicit class TryOps(val op: Try[Unit]) extends AnyVal {
def eval: Unit = op match {
case Failure(err) => throw ReflectionUtils.unwrapThrowable(err)//fail(ReflectionUtils.unwrapThrowable(err).toString)
case Failure(err) => fail(err.toString)
case _ => ()
}
}
Expand Down

0 comments on commit 8dff096

Please sign in to comment.