Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to: #1459
Related to: #1178
Currently, some of Kotlin's features do not work in NativeScript, most notably the
Companion
objects. This PR enables their usage. The PR also adds JS tests for Kotlin specific language features which do not have an analog in Java.The PR ensures Kotlin features could be used in JS the same way Kotlin could be used in Java projects. Calling Kotlin from Java is well described in the official Kotlin docs: https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html
Syntax for calling Kotlin properties in JS as if they have been fields is also added with the restriction that properties whose names start with 'is' should be used by calling their backing method as in if they were used in Java.