[fine] Test for function return type mismatch
This commit is contained in:
parent
d893002ec2
commit
44bc072b04
4 changed files with 23 additions and 6 deletions
5
fine/tests/expression/errors/return_type_mismatch.fine
Normal file
5
fine/tests/expression/errors/return_type_mismatch.fine
Normal 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`
|
||||
Loading…
Add table
Add a link
Reference in a new issue