You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objectTest {
deftest:Unit= {
traitTA[X<:CharSequence]
0match {
case _ =>// the bounds violation isn't reported. RefChecks seems to be too broadly disabled under virtpatmat: see 65340ed4ad2e
locally(null:TA[Object])
()
}
}
}
// skip refchecks in patterns....
result = result match {
caseCaseDef(pat, guard, body) =>
inPattern =truevalpat1= transform(pat)
inPattern =false
treeCopy.CaseDef(tree, pat1, transform(guard), transform(body))
caseLabelDef(_, _, _) if treeInfo.hasSynthCaseSymbol(result) =>valold= inPattern
inPattern =truevalres= deriveLabelDef(result)(transform)
inPattern = old
res
caseValDef(_, _, _, _) if treeInfo.hasSynthCaseSymbol(result) =>
deriveValDef(result)(transform)
case _ =>super.transform(result)
}
The text was updated successfully, but these errors were encountered:
scala>1==""
<console>:8:warning: comparing values of types Int and String using `==' will always yield false1==""
^
res0:Boolean=false
scala>0match { case _ =>1=="" }
res1:Boolean=false
The text was updated successfully, but these errors were encountered: