Skip to content

Commit 4535dff

Browse files
Backport "Add regression test for i19675" to 3.5.2 (#21493)
Backports #21159 to the 3.5.2 branch. PR submitted by the release tooling. [skip ci]
2 parents a31d658 + b58a78d commit 4535dff

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import com.twitter.finagle.Thrift
2+
import com.twitter.finagle.thrift.ThriftService
3+
import scala.reflect.ClassTag
4+
5+
class Minim {
6+
trait Foo[A]
7+
8+
object Foo {
9+
inline def make[A]: Foo[A] = ???
10+
}
11+
12+
final class Unrelated()
13+
14+
object Unrelated {
15+
val foo = Foo.make[Unrelated]
16+
}
17+
18+
object Main {
19+
def foo[S <: ThriftService](using ClassTag[S]) =
20+
Thrift.client.build[S]("asd")
21+
}
22+
}

Diff for: sbt-test/scala2-compat/i19675/build.sbt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
scalaVersion := sys.props("plugin.scalaVersion")
2+
3+
scalacOptions ++= Seq("-Wunused:imports", "-deprecation", "-Werror")
4+
libraryDependencies ++= Seq(
5+
"com.twitter" %% "finagle-thrift" % "24.2.0"
6+
).map(_.cross(CrossVersion.for3Use2_13))

Diff for: sbt-test/scala2-compat/i19675/test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> compile

0 commit comments

Comments
 (0)