Skip to content

Commit 7526ba1

Browse files
committed
Drop CrossCastAnd
It seems it's not needed since erasure already takes care of inserting the necessary casts
1 parent 5c5be6d commit 7526ba1

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ class Compiler {
7676
new sjs.ExplicitJSClasses, // Make all JS classes explicit (Scala.js only)
7777
new ExplicitOuter, // Add accessors to outer classes from nested ones.
7878
new ExplicitSelf, // Make references to non-trivial self types explicit as casts
79-
new StringInterpolatorOpt, // Optimizes raw and s string interpolators by rewriting them to string concatentations
80-
new CrossCastAnd) :: // Normalize selections involving intersection types.
79+
new StringInterpolatorOpt) :: // Optimizes raw and s string interpolators by rewriting them to string concatentations
8180
List(new PruneErasedDefs, // Drop erased definitions from scopes and simplify erased expressions
8281
new InlinePatterns, // Remove placeholders of inlined patterns
8382
new VCInlineMethods, // Inlines calls to value class methods

compiler/src/dotty/tools/dotc/transform/CrossCastAnd.scala

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)