chaos-lang / chaos

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

[crash] #71

Closed tankf33der closed 4 years ago

tankf33der commented 4 years ago
# ./chaos
    Chaos Language 0.0.1-alpha (Aug 18 2020 14:43:22)
    GCC version: 9.3.0 on linux
    Turn chaos into magic!

kaos> num def a(num a, num b)
....  num z = 0
....  end {}
kaos> a()
  Chaos Error:
    Module: /root/chaos/__interactive__.kaos
    Line: 4
    Incorrect argument count for function: a
    Absorbed by Interactive Shell
kaos> a(1,2)
Segmentation fault
mertyildiran commented 4 years ago

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