[fine] Test for function return type mismatch

This commit is contained in:
John Doty 2024-01-15 07:52:49 -08:00
parent d893002ec2
commit 44bc072b04
4 changed files with 23 additions and 6 deletions

View file

@ -0,0 +1,5 @@
fun test() -> bool {
32
}
// @check-error: the body of this function yields a value of type `f64`, but callers expect this function to produce a `bool`