Skip to content

Commit 93aa17d

Browse files
committed
Revert "Disallow Phantom types in casts"
This reverts commit 9c15214.
1 parent 6e8130b commit 93aa17d

File tree

4 files changed

+0
-125
lines changed

4 files changed

+0
-125
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class Compiler {
5151
new CheckReentrant, // Internal use only: Check that compiled program has no data races involving global vars
5252
new ElimJavaPackages), // Eliminate syntactic references to Java packages
5353
List(new CheckStatic, // Check restrictions that apply to @static members
54-
new CheckPhantomCast, // Checks that no Phantom types in are in casts
5554
new ElimRepeated, // Rewrite vararg parameters and arguments
5655
new RefChecks, // Various checks mostly related to abstract members and overriding
5756
new NormalizeFlags, // Rewrite some definition flags

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

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

tests/neg/phantom-class-type-members.scala

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

tests/neg/phantom-class-type-parameters.scala

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

0 commit comments

Comments
 (0)