@@ -8,6 +8,13 @@ class Foo[T]:
88// https://github.com/scala/scala3/issues/24671
99final case class Bar [+ T ](t : T )
1010
11+ // `m: public <T1> T C.m()` rather than `m: public <T> T C.m()`
12+ // that was wrong and could be crashed with
13+ // `val c = C[String]; String x = c.<Object>m();`.
14+ abstract class C [T ]:
15+ def x : T
16+ def m [T ] = x
17+
1118// https://github.com/scala/scala3/issues/24134
1219// The mixin forwarders for compose in Function1 method has signature
1320// `def compose[A](g: A => T1): A => R`
@@ -24,10 +31,13 @@ abstract class JavaPartialFunction[A, B] extends PartialFunction[A, B]
2431
2532 val barMethods = classOf [Bar [_]].getDeclaredMethods()
2633 printMethodSig(barMethods, " copy" )
27- // copy$default$1 still have `<T1> T Bar.copy$default$1` rather than `<T> T Bar.copy$default$1`
34+ // copy$default$1 have `<T1> T Bar.copy$default$1` rather than `<T> T Bar.copy$default$1`
2835 // as reported in https://github.com/scala/scala3/issues/24671
2936 // The type parameter rename occurs because the return type T refers the enclosing class's type param T.
30- // printMethodSig(barMethods, "copy$default$1")
37+ printMethodSig(barMethods, " copy$default$1" )
38+
39+ val cMethods = classOf [C [_]].getDeclaredMethods()
40+ printMethodSig(cMethods, " m" )
3141
3242 val jpfMethods = classOf [JavaPartialFunction [_, _]].getDeclaredMethods()
3343 printMethodSigs(jpfMethods, " compose" )
0 commit comments