File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ object Config {
10
10
11
11
final val checkCacheMembersNamed = false
12
12
13
- final val newHK = false
13
+ final val newHK = true
14
14
15
15
/** When updating a constraint bound, check that the constrained parameter
16
16
* does not appear at the top-level of either of its bounds.
@@ -80,9 +80,11 @@ object Config {
80
80
final val checkProjections = false
81
81
82
82
/** If this flag is set it is checked that &/| only apply to types
83
- * that are either both hk types or both * types.
83
+ * that are either both hk types or both * types. Should be used
84
+ * only for debugging as there a generic class without arguments
85
+ * can be produced in an And by Implicits.liftToClasses.
84
86
*/
85
- final val checkKinds = true
87
+ final val checkKinds = false
86
88
87
89
/** The recursion depth for showing a summarized string */
88
90
final val summarizeDepth = 2
Original file line number Diff line number Diff line change @@ -2356,8 +2356,7 @@ object Types {
2356
2356
object OrType {
2357
2357
def apply (tp1 : Type , tp2 : Type )(implicit ctx : Context ) = {
2358
2358
assertUnerased()
2359
- if (Config .checkKinds)
2360
- assert((tp1.knownHK - tp2.knownHK).abs <= 1 , i " $tp1 | $tp2" )
2359
+ if (Config .checkKinds) assert((tp1.knownHK - tp2.knownHK).abs <= 1 , i " $tp1 | $tp2" )
2361
2360
unique(new CachedOrType (tp1, tp2))
2362
2361
}
2363
2362
def make (tp1 : Type , tp2 : Type )(implicit ctx : Context ): Type =
@@ -3582,7 +3581,6 @@ object Types {
3582
3581
try this (arg)
3583
3582
finally variance = saved
3584
3583
}
3585
- assert(tp.args.length == tp.typeParams.length, tp)
3586
3584
derivedAppliedType(tp, this (tp.tycon),
3587
3585
tp.args.zipWithConserve(tp.typeParams)(mapArg))
3588
3586
You can’t perform that action at this time.
0 commit comments