summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/transform/Erasure.scala2
-rw-r--r--test/files/run/t8756.check2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Erasure.scala b/src/compiler/scala/tools/nsc/transform/Erasure.scala
index 0301e06c87..bc614dfc31 100644
--- a/src/compiler/scala/tools/nsc/transform/Erasure.scala
+++ b/src/compiler/scala/tools/nsc/transform/Erasure.scala
@@ -344,7 +344,7 @@ abstract class Erasure extends AddInterfaces
buf.toString
case RefinedType(parents, decls) =>
- boxedSig(intersectionDominator(parents))
+ jsig(intersectionDominator(parents), primitiveOK = primitiveOK)
case ClassInfoType(parents, _, _) =>
superSig(parents)
case AnnotatedType(_, atp) =>
diff --git a/test/files/run/t8756.check b/test/files/run/t8756.check
index 89337543bd..9b9dcafe7d 100644
--- a/test/files/run/t8756.check
+++ b/test/files/run/t8756.check
@@ -1,5 +1,5 @@
public Bippy<java.lang.Object> Test.f1(long)
-public Bippy<java.lang.Object> Test.f2(java.lang.Object)
+public Bippy<java.lang.Object> Test.f2(long)
public Bippy<java.lang.Object> Test.i1(Bippy<java.lang.Object>)
public Bippy<java.lang.Object> Test.i2(Bippy<java.lang.Object>)
public int Test.g1(long)