Skip to content

[ConstraintSystem] Introduce a fix for assignment type mismatch #27283

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

Merged
merged 1 commit into from
Sep 21, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 21, 2019

Introduce a fix/diagnostic when there is a contextual mismatch
between source and destination types of the assignment e.g.:

var x: Int = 0
x = 4.0 // destination expects an `Int`, but source is a `Double`

Introduce a fix/diagnostic when there is a contextual mismatch
between source and destination types of the assignment e.g.:

```swift
var x: Int = 0
x = 4.0 // destination expects an `Int`, but source is a `Double`
```
@xedin xedin requested review from DougGregor and hborla September 21, 2019 00:13
@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2019

Last step on the way to missing argument diagnostics...

@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2019

@swift-ci please smoke test

@xedin xedin merged commit 9d73ead into swiftlang:master Sep 21, 2019
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

Successfully merging this pull request may close these issues.

2 participants