From 4b79f893e9c0189a9f9f804d736f79bec447ec56 Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Wed, 25 Dec 2024 17:00:01 +0100 Subject: [PATCH 1/2] use latest scalameta for better SIP-64 support --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 506f69b29..94804af49 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -23,7 +23,7 @@ object Dependencies { val metaconfigV = "0.14.0" val nailgunV = "0.9.1" val scalaXmlV = "2.2.0" - val scalametaV = "4.12.2" + val scalametaV = "4.12.3" val scalatagsV = "0.13.1" val scalatestV = "3.2.19" val munitV = "1.0.3" From cc931d303ff16f6fb635213fdcab589697d9c04b Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Wed, 25 Dec 2024 17:05:23 +0100 Subject: [PATCH 2/2] test more SIP-64 syntax --- .../test/explicitResultTypes/Scala3_6OrGreater.scala | 3 +++ .../test/explicitResultTypes/Scala3_6OrGreater.scala | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scalafix-tests/input/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala b/scalafix-tests/input/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala index be14317e5..efbda23fc 100644 --- a/scalafix-tests/input/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala +++ b/scalafix-tests/input/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala @@ -8,6 +8,9 @@ trait Order[T]: extension (values: Seq[T]) def toSorted: Seq[T] = ??? def compare(x: T, y: T): Int +given List[Int] => Object = new: + def foo() = 1 + given Order[Int]: def compare(x: Int, y: Int) = ??? diff --git a/scalafix-tests/output/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala b/scalafix-tests/output/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala index 3fd1760a5..418783fa0 100644 --- a/scalafix-tests/output/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala +++ b/scalafix-tests/output/src/main/scala-3next/test/explicitResultTypes/Scala3_6OrGreater.scala @@ -4,6 +4,9 @@ trait Order[T]: extension (values: Seq[T]) def toSorted: Seq[T] = ??? def compare(x: T, y: T): Int +given List[Int] => Object = new: + def foo(): Int = 1 + given Order[Int]: def compare(x: Int, y: Int): Int = ???