Skip to content

Commit 1ec9cbb

Browse files
committed
Change default of unsafe Config option
1 parent d5168c3 commit 1ec9cbb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/dotty/tools/dotc/config/Config.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ object Config {
8787
*/
8888
final val checkLambdaVariance = false
8989

90-
/** Check that certain types cannot be created in erasedTypes phases */
91-
final val checkUnerased = true
90+
/** Check that certain types cannot be created in erasedTypes phases.
91+
* Note: Turning this option on will get some false negatives, since it is
92+
* possible that And/Or types are still created during erasure as the result
93+
* of some operation on an existing type.
94+
*/
95+
final val checkUnerased = false
9296

9397
/** In `derivedSelect`, rewrite
9498
*

0 commit comments

Comments
 (0)