Skip to content

Commit 3f3f1ba

Browse files
committed
Restrict refinement bounds checking to type refinements
Analogously to what we do for members that have symbols.
1 parent c65e954 commit 3f3f1ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/CheckRealizable.scala

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class CheckRealizable(implicit ctx: Context) {
126126
val refinementProblems =
127127
for {
128128
name <- refinedNames(tp)
129+
if (name.isTypeName)
129130
mbr <- tp.member(name).alternatives
130131
if !(mbr.info.loBound <:< mbr.info.hiBound)
131132
}

0 commit comments

Comments
 (0)