File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ object ClassfileConstants {
362
362
res = addFlag(res, nflags & JAVA_ACC_FINAL )
363
363
res = addFlag(res, nflags & JAVA_ACC_SYNTHETIC )
364
364
res = addFlag(res, nflags & JAVA_ACC_STATIC )
365
+ res = addFlag(res, nflags & JAVA_ACC_ENUM )
365
366
res = addFlag(res, nflags & JAVA_ACC_ABSTRACT )
366
367
res = addFlag(res, nflags & JAVA_ACC_INTERFACE )
367
368
res
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ object TypeTestsCasts {
59
59
60
60
def replaceP (tp : Type )(implicit ctx : Context ) = new TypeMap {
61
61
def apply (tp : Type ) = tp match {
62
- case tref : TypeRef
63
- if isPatternTypeSymbol (tref.typeSymbol) => WildcardType
64
- case AnnotatedType (_, annot)
65
- if annot.symbol == defn. UncheckedAnnot => WildcardType
62
+ case tref : TypeRef if tref.typeSymbol.isPatternBound =>
63
+ WildcardType (tref.underlying.bounds)
64
+ case AnnotatedType (_, annot) if annot.symbol == defn. UncheckedAnnot =>
65
+ WildcardType
66
66
case _ => mapOver(tp)
67
67
}
68
68
}.apply(tp)
@@ -120,6 +120,9 @@ object TypeTestsCasts {
120
120
maximizeType(P1 , span, fromScala2x = false )
121
121
122
122
val res = P1 <:< P
123
+
124
+ debug.println(TypeComparer .explained(P1 <:< P ))
125
+
123
126
debug.println(" P1 : " + P1 .show)
124
127
debug.println(" P1 <:< P = " + res)
125
128
You can’t perform that action at this time.
0 commit comments