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

Returning Expressions #1

Open
kierajreed opened this issue Oct 30, 2018 · 0 comments
Open

Returning Expressions #1

kierajreed opened this issue Oct 30, 2018 · 0 comments

Comments

@kierajreed
Copy link

Summary: If you try to return an expression, Soy will not compile and will throw an error.

Expected behavior: Below code should compile.

fun add(a: int, b: int) -> int {
  return a + b
}

Actual behavior: It does not compile and throws an error.

Error log: https://hastebin.com/bizirehiti.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant