Unexplained Scala compiler behavior (3.7.4)
Summary This incident revolves around unexpected differences in how Scala 3 infers types when calling contains on Set. Although the API signatures appear straightforward, Scala’s type inference and literal typing rules create surprising behavior. The result: two expressions that look identical do not compile the same way. Root Cause The root cause is a combination … Read more