Skip to content

Returning Expressions #1

@kierajreed

Description

@kierajreed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions