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

Type of function tail expressions not inferred correctly #680

Closed
brson opened this issue Jul 12, 2011 · 1 comment
Closed

Type of function tail expressions not inferred correctly #680

brson opened this issue Jul 12, 2011 · 1 comment
Assignees
Labels
A-type-system Area: Type system

Comments

@brson
Copy link
Contributor

brson commented Jul 12, 2011

This doesn't typecheck:

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

This does:

fn f() -> int[] {
  ret ~[];
}
@ghost ghost assigned brson Jul 12, 2011
@brson
Copy link
Contributor Author

brson commented Jul 12, 2011

Oh, the error is "error: cannot determine a type for this expression"

@brson brson closed this as completed in 41a3888 Jul 12, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Fix constant instruction binop in forward mode

* Fix llvm7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

1 participant