Fixed bug with wrong line numbers in error messages. Fixed permissions on examples. (0.39.14)
This commit is contained in:
parent
4956e44e60
commit
53ccdbda10
26 changed files with 274 additions and 116 deletions
20
lib/test/include_divzero.fun
Normal file
20
lib/test/include_divzero.fun
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2026 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*
|
||||
* Added: 2026-03-30
|
||||
*/
|
||||
|
||||
// Minimal test library to trigger a runtime error at a precise line
|
||||
|
||||
fun boom()
|
||||
// The division by zero MUST be on this exact line (line 14)
|
||||
x = 1 / 0
|
||||
return x
|
||||
|
||||
fun ok()
|
||||
return 42
|
||||
Loading…
Add table
Add a link
Reference in a new issue