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

INT: improve "specify type explicitly" intention #4735

Merged
merged 2 commits into from Dec 19, 2019

Conversation

vlad20012
Copy link
Member

  1. Make it unavailable in initializer (just like int Kotlin): let a = /*caret*/b; Useful in constructions like let = if foo { /*caret*/ } else {};
  2. Make it work with complex patterns like let (a, b) = ...

Intention now unavailable if the caret is placed
next to an initializer: `let a = /*caret*/b;`

Useful in constructions like
```
let = if foo { /*caret*/ } else {};
```
@vlad20012 vlad20012 added the fix Pull requests that fix some bug(s) label Dec 7, 2019
@vlad20012 vlad20012 added this to In Progress in To test via automation Dec 7, 2019
@vlad20012 vlad20012 added this to the v113 milestone Dec 19, 2019
@vlad20012
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 19, 2019
4735: INT: improve "specify type explicitly" intention r=vlad20012 a=vlad20012

1. Make it unavailable in initializer (just like int Kotlin): `let a = /*caret*/b;` Useful in constructions like `let = if foo { /*caret*/ } else {};`
2. Make it work with complex patterns like `let (a, b) = ...`

Co-authored-by: vlad20012 <beskvlad@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 19, 2019

Build failed

@vlad20012
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 19, 2019
4735: INT: improve "specify type explicitly" intention r=vlad20012 a=vlad20012

1. Make it unavailable in initializer (just like int Kotlin): `let a = /*caret*/b;` Useful in constructions like `let = if foo { /*caret*/ } else {};`
2. Make it work with complex patterns like `let (a, b) = ...`

Co-authored-by: vlad20012 <beskvlad@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 19, 2019

Build failed

@vlad20012
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 19, 2019
4735: INT: improve "specify type explicitly" intention r=vlad20012 a=vlad20012

1. Make it unavailable in initializer (just like int Kotlin): `let a = /*caret*/b;` Useful in constructions like `let = if foo { /*caret*/ } else {};`
2. Make it work with complex patterns like `let (a, b) = ...`

Co-authored-by: vlad20012 <beskvlad@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 19, 2019

@bors bors bot merged commit caa7553 into master Dec 19, 2019
To test automation moved this from In Progress to Test Dec 19, 2019
@bors bors bot deleted the int-improve-specify-type-explicitly branch December 19, 2019 20:35
@lancelote lancelote moved this from Test to Done in To test Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull requests that fix some bug(s)
Projects
To test
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant