Skip to content

Commit eca6849

Browse files
committed
Augment regression test
1 parent fb8fddc commit eca6849

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/warn/i23694.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,20 @@ package net.marek.tyre.automaton:
2525
val i: T,
2626
):
2727
def build = "27"
28+
29+
// duplicate issue #24326
30+
31+
trait Local[F[_], E] {
32+
33+
def liftTo[G[_]]: Local[G, E] =
34+
new Local.Lifted(this)
35+
}
36+
37+
object Local {
38+
private final class Lifted[F[_], G[_], E](
39+
val underlying: Local[F, E],
40+
) extends Local[G, E] {
41+
override def liftTo[H[_]]: Local[H, E] =
42+
new Lifted(underlying)
43+
}
44+
}

0 commit comments

Comments
 (0)