We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 780183d + a550db3 commit 8558b4dCopy full SHA for 8558b4d
compiler/src/dotty/tools/dotc/transform/GenericSignatures.scala
@@ -56,7 +56,7 @@ object GenericSignatures {
56
ps.foreach(boxedSig)
57
}
58
59
- def boxedSig(tp: Type): Unit = jsig(tp, primitiveOK = false)
+ def boxedSig(tp: Type): Unit = jsig(tp.widenDealias, primitiveOK = false)
60
61
def boundsSig(bounds: List[Type]): Unit = {
62
val (isTrait, isClass) = bounds partition (_.typeSymbol.is(Trait))
tests/pos/i3553.scala
@@ -0,0 +1,8 @@
1
+class Foo[T <: List[1]](param: List[1]) {
2
+ def foo(in: List[1]): List[true] = Nil
3
+ def bar[U >: List[1]](in: List['z']): List[1.0e9] = Nil
4
+}
5
+class Bar[T <: 1](param: 1) {
6
+ def foo(in: 1): true = true
7
+ def bar[U >: 1](in: 'z'): 1.0e9 = 1.0e9
8
0 commit comments