Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested function calls #25

Open
achxkloel opened this issue Dec 12, 2021 · 0 comments
Open

Nested function calls #25

achxkloel opened this issue Dec 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@achxkloel
Copy link
Collaborator

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!
@achxkloel achxkloel added the bug Something isn't working label Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants