Skip to content

Commit afe910d

Browse files
committed
Merge pull request #603 from smarter/fix/vc-bridges
Fix bridge creation for value classes
2 parents 818afa8 + 3fa6782 commit afe910d

File tree

4 files changed

+1
-2
lines changed

4 files changed

+1
-2
lines changed

src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ object Erasure extends TypeTestsCasts{
523523
// Erasure contains an ErasedValueType but the corresponding type in the functional
524524
// interface is not an ErasedValueType.
525525
val bridgeNeeded =
526-
(implResultType :: implParamTypes, samResultType :: samParamTypes).zipped.forall(
526+
(implResultType :: implParamTypes, samResultType :: samParamTypes).zipped.exists(
527527
(implType, samType) => implType.isErasedValueType && !samType.isErasedValueType
528528
)
529529

tests/pending/run/t8017.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)