Skip to content

Nested function calls #25

@achxkloel

Description

@achxkloel

There is a problem with nested function calls.

Example:

require "ifj21"

function foo(p : integer) : string
	return "hello"
end

function bar(a : integer, b : integer) : integer
	return a + b
end

function main()
	local test : string = foo(bar(1, 2))
	write(test .. "\n")
end

main()

Output:

Error at line: 403
Symbol already exists!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions