File tree 2 files changed +10
-0
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2828,6 +2828,10 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2828
2828
provablyDisjoint(tp1, defn.AnyType )
2829
2829
case _ if ! ctx.erasedTypes && tp1.isFromJavaObject =>
2830
2830
provablyDisjoint(defn.AnyType , tp2)
2831
+ case (tp1 : TypeRef , _) if tp1.symbol == defn.AnyKindClass =>
2832
+ false
2833
+ case (_, tp2 : TypeRef ) if tp2.symbol == defn.AnyKindClass =>
2834
+ false
2831
2835
case (tp1 : TypeRef , _) if tp1.symbol == defn.SingletonClass =>
2832
2836
false
2833
2837
case (_, tp2 : TypeRef ) if tp2.symbol == defn.SingletonClass =>
Original file line number Diff line number Diff line change
1
+ import scala .quoted .*
2
+
3
+ trait DFValOf [T ]
4
+
5
+ def calcWidth (x : List [Type [? ]])(using q : Quotes ): Unit =
6
+ x.collect { case ' [DFValOf [t]] => ??? }
You can’t perform that action at this time.
0 commit comments