unreachable-code Questions
4
Solved
Sometimes when you are debugging, you have unreachable code fragment. Is there anyway to suppress the warning?
Kola asked 17/5, 2011 at 1:33
1
Solved
I'm new to Scala... Here's the code:
def ack2(m: BigInt, n: BigInt): BigInt = {
val z = BigInt(0)
(m,n) match {
case (z,_) => n+1
case (_,z) => ack2(m-1,1) // Compiler says unreachable ...
Magellan asked 13/4, 2010 at 18:41
© 2022 - 2024 — McMap. All rights reserved.