chaos-lang / chaos

The Chaos Programming Language
https://chaos-lang.org
GNU General Public License v3.0
281 stars 17 forks source link

[Bug] crash in return any type #22

Closed tankf33der closed 4 years ago

tankf33der commented 4 years ago

Dump code:

$ cat mike.e
bool def mike()
    any a = false
    return a
end
mike()
$ chaos mike.e
 Chaos Error - Illegal variable type: Any for function: mike 
free(): double free detected in tcache 2
Aborted (core dumped)
$
mertyildiran commented 4 years ago

@tankf33der fixed with https://github.com/chaos-lang/chaos/commit/fb387f71b8f6993f9ec1afff4059f2661ee6a617