Quick actions

cmd+k|ctrl+k

Navigation

Languages

func problem

Snippet info

Language

Nim

Visibility

public

Author

danielmg17

Created

2019-06-21T20:45:11Z

Updated

2019-06-21T20:45:11Z

var terrible = 4;

func foo(x:int, y:int): int =
    terrible = 60; # this should give an error, not overload it
    return x + y + terrible;

proc main =
    echo "Hello World!";
    terrible -= 1;
    echo foo(1,terrible);

main();
INFO