diff --git a/sbt-test/scala2-compat/i19675/UnrelatedDeprecationWarning.scala b/sbt-test/scala2-compat/i19675/UnrelatedDeprecationWarning.scala new file mode 100644 index 000000000000..da7585a5dab7 --- /dev/null +++ b/sbt-test/scala2-compat/i19675/UnrelatedDeprecationWarning.scala @@ -0,0 +1,22 @@ +import com.twitter.finagle.Thrift +import com.twitter.finagle.thrift.ThriftService +import scala.reflect.ClassTag + +class Minim { + trait Foo[A] + + object Foo { + inline def make[A]: Foo[A] = ??? + } + + final class Unrelated() + + object Unrelated { + val foo = Foo.make[Unrelated] + } + + object Main { + def foo[S <: ThriftService](using ClassTag[S]) = + Thrift.client.build[S]("asd") + } +} diff --git a/sbt-test/scala2-compat/i19675/build.sbt b/sbt-test/scala2-compat/i19675/build.sbt new file mode 100644 index 000000000000..819be2d87d58 --- /dev/null +++ b/sbt-test/scala2-compat/i19675/build.sbt @@ -0,0 +1,6 @@ +scalaVersion := sys.props("plugin.scalaVersion") + +scalacOptions ++= Seq("-Wunused:imports", "-deprecation", "-Werror") +libraryDependencies ++= Seq( + "com.twitter" %% "finagle-thrift" % "24.2.0" +).map(_.cross(CrossVersion.for3Use2_13)) diff --git a/sbt-test/scala2-compat/i19675/test b/sbt-test/scala2-compat/i19675/test new file mode 100644 index 000000000000..73a68203f3f1 --- /dev/null +++ b/sbt-test/scala2-compat/i19675/test @@ -0,0 +1 @@ +> compile \ No newline at end of file