bolt/test.bolt

21 lines
184 B
Text
Raw Normal View History

2020-05-30 11:35:14 +02:00
struct int;
impl int {
fn fac(self) -> int {
return match n {
0 => 1,
_ => n * fac(n-1),
}
}
}
// This is wrong
fac();
// This is also wrong
fac("FOO");