Skip to content

Commit 748bf47

Browse files
committed
Fix for syntax for 2.12 build
1 parent 0831ec9 commit 748bf47

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,18 @@ class CheckRealizable(implicit ctx: Context) {
146146
private def boundsRealizability(tp: Type) = {
147147

148148
val memberProblems =
149-
for mbr <- tp.nonClassTypeMembers if !(mbr.info.loBound <:< mbr.info.hiBound)
150-
yield new HasProblemBounds(mbr.name, mbr.info)
149+
for {
150+
mbr <- tp.nonClassTypeMembers
151+
if !(mbr.info.loBound <:< mbr.info.hiBound)
152+
} yield new HasProblemBounds(mbr.name, mbr.info)
151153

152154
val refinementProblems =
153-
for
155+
for {
154156
name <- refinedNames(tp)
155157
if (name.isTypeName)
156158
mbr <- tp.member(name).alternatives
157159
if !(mbr.info.loBound <:< mbr.info.hiBound)
158-
yield new HasProblemBounds(name, mbr.info)
160+
} yield new HasProblemBounds(name, mbr.info)
159161

160162
def baseTypeProblems(base: Type) = base match {
161163
case AndType(base1, base2) =>

0 commit comments

Comments
 (0)