[fine] Many test improvements, error improvements
- Check for more error conditions - Move to more definitive error assertions - Simpler error messages in some cases - Test more conditions more thoroughly, revisit old tests
This commit is contained in:
parent
d0b74db715
commit
5f0a0b3268
20 changed files with 186 additions and 118 deletions
12
fine/tests/expression/errors/locals_in_globals.fine
Normal file
12
fine/tests/expression/errors/locals_in_globals.fine
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
// This is a block-local declaration; it should *not* appear in the global
|
||||
// environment.
|
||||
let y = 23;
|
||||
}
|
||||
|
||||
fun foo() -> f64 {
|
||||
y + 3
|
||||
}
|
||||
|
||||
// @expect-errors:
|
||||
// | 8:2: cannot find value y here
|
||||
Loading…
Add table
Add a link
Reference in a new issue