Builtins.Missing_Case3kaya
Unexpected constructor in case statement
Usage
Builtins::Missing_Case( )
Overview
This Exception is thrown when a constructor with no explicitly defined behaviour was used in a case statement, and there was no default case.
-
data Example = A(Int a) | B(String b) | C(Float c);
Void string(Example e) {
case e of {
A(a) -> return String(a);
| B(b) -> return b;
}
} // if e = C(1.0) then a Missing_Case exception will be thrown.
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.