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
How should this compile? Is the pattern exhaustive? Does it have unreachable cases?
objectA {
deffoo(a: Int|Double) = a match {casea: (Float|Boolean) =>1}
deffooUnsafe(a: Int|Double) = a.isInstanceOf[ Float|Boolean] // is it true or false?
}