2025-10-04 17:34:23 +02:00
|
|
|
#!/usr/bin/env fun
|
|
|
|
|
|
2025-10-04 20:35:59 +02:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Fun programming language.
|
2025-10-09 01:59:19 +02:00
|
|
|
* https://fun-lang.xyz/
|
2025-10-04 20:35:59 +02:00
|
|
|
*
|
|
|
|
|
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
|
|
|
|
* Licensed under the terms of the Apache-2.0 license.
|
|
|
|
|
* https://opensource.org/license/apache-2-0
|
|
|
|
|
*
|
|
|
|
|
* Added: 2025-10-04
|
|
|
|
|
*/
|
|
|
|
|
|
2025-10-04 17:34:23 +02:00
|
|
|
boolean b = false
|
|
|
|
|
print("b => " + to_string(b))
|
|
|
|
|
/* Try typeof via built-in function if available */
|
|
|
|
|
print("typeof(b) => " + typeof(b))
|
2025-12-23 20:49:07 +01:00
|
|
|
|
|
|
|
|
/* Expected output:
|
|
|
|
|
b => false
|
|
|
|
|
typeof(b) => Boolean
|
|
|
|
|
*/
|