We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The following swift code:
class A { var myVar: String { "test" } var state: Observable<RestaurantsListState> { get { myVar.asObservable() } } func myFunc() -> Int { 2 + 5 } }
Returns this Kotlin:
class A { val myVar: String get() { "test" } val state: Observable<RestaurantsListState> get() { myVar.asObservable() } fun myFunc() : Int { 2 + 5 } }
But that is not valid since it should either include return statements or preferably use the = like this:
return
=
class A { val myVar: String get() = "test" val state: Observable<RestaurantsListState> get() = myVar.asObservable() fun myFunc() : Int = 2 + 5 }
UPDATE: This is working for explicit returns, it is just happening with the new implicit ones from Swift5.2
The text was updated successfully, but these errors were encountered:
#116 Fixed implicit return statements from Swift 5.2
09af2d1
Merge pull request #117 from angelolloqui/fix/116
6cb381e
No branches or pull requests
The following swift code:
Returns this Kotlin:
But that is not valid since it should either include
return
statements or preferably use the=
like this:UPDATE: This is working for explicit returns, it is just happening with the new implicit ones from Swift5.2
The text was updated successfully, but these errors were encountered: