Skip to content

Commit 746373b

Browse files
committed
Fix Env.isHot
1 parent f00b0c9 commit 746373b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class Semantic {
183183

184184
def union(other: Env): Env = env ++ other
185185

186-
def isHot: Boolean = env.values.exists(_ != Hot)
186+
def isHot: Boolean = env.values.forall(_ == Hot)
187187
}
188188

189189
type Env = Env.Env

0 commit comments

Comments
 (0)