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

Assertion failure in assignment #1562

Open
kyouko-taiga opened this issue Aug 20, 2024 · 0 comments
Open

Assertion failure in assignment #1562

kyouko-taiga opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kyouko-taiga
Copy link
Contributor

The following program crashes the compilers to a violated assertion.

public fun main() {
  var x: Optional<Int>
  &x = 1
}

The problem is that the integer literal does not get a type. I suspect the issue is during the construction of type checking constraints.

@kyouko-taiga kyouko-taiga added the bug Something isn't working label Aug 20, 2024
@kyouko-taiga kyouko-taiga changed the title Assertion failure in assignment to cast expression Assertion failure in assignment Aug 20, 2024
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

1 participant