[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
8
fine/tests/expression/errors/class_as_a_variable.fine
Normal file
8
fine/tests/expression/errors/class_as_a_variable.fine
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class Foo {}
|
||||
|
||||
fun test() -> f64 {
|
||||
Foo + 23
|
||||
}
|
||||
|
||||
// @expect-errors:
|
||||
// | 4:2: Foo is a class, not a value (did you mean to create a new instance with 'new'?)
|
||||
Loading…
Add table
Add a link
Reference in a new issue