Skip to content

Type of function tail expressions not inferred correctly #680

Closed
@brson

Description

@brson

This doesn't typecheck:

fn f() -> int[] {
  ~[]
}

This does:

fn f() -> int[] {
  ret ~[];
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions