Alexander Udalov
871b896a21
Add internal compiler argument to change metadata version
...
Will be used in tests to check how we behave on binaries produced by a
"future" compiler
2018-07-18 17:59:37 +02:00
Alexander Udalov
cfc0f5e453
Support correct way of writing/loading version requirement table
...
Tests are added in subsequent commits.
KT-25120 Fixed
2018-07-18 17:59:37 +02:00
Alexander Udalov
4122021090
Add BinaryVersion to DeserializationContext
...
This will be useful to implement version-dependent deserialization,
which is needed for gradual fixes of issues in metadata
#KT-25120 In Progress
2018-07-18 17:58:46 +02:00
Alexander Udalov
1e9694f1db
Fix version requirement serialization for nested classes
...
Use the version requierement table of the outer DescriptorSerializer
instance when serializing metadata for a class. Pass parent serializer
to DescriptorSerializer.create to make sure the correct table is used.
Serialize nested classes before the outer class in JS and common code,
to make sure requirements are not lost. Also, split
VersionRequirementTest to JVM and JS
#KT-25120 In Progress
2018-07-18 17:58:46 +02:00
Ilya Chernikov
a61de052c7
Do not throw on incompatible cli scripting plugin
...
More reliably fixes #KT-24946, #KT-24438 and alike
2018-07-18 15:15:41 +02:00
Roman Artemev
e4b314c26c
Fix inlining of invoke operator [#KT-25474]
...
* add test
2018-07-18 16:12:41 +03:00
Dmitry Petrov
a457a9f870
Update testData for IDEA tests for annotations with target EXPRESSION
2018-07-18 15:56:11 +03:00
Svyatoslav Kuzmich
b23dabb8b7
Revert EXPECTED_REACHABLE_NODES for failed tests
2018-07-18 15:31:29 +03:00
Dmitry Petrov
82f22f92ca
Don't generate ConstantValue for non-const vals in Kotlin 1.3+
2018-07-18 15:02:54 +03:00
Georgy Bronnikov
7640b7f63a
Stylistic changes suggested in review for @JvmStatic
2018-07-18 14:29:03 +03:00
Alexander Udalov
1e675bdc01
Simplify implementation of JvmField property in interface companion
...
Move parts of the logic to the only places where they're needed:
checking for public/final/val is only needed in
JvmFieldApplicabilityChecker, checking the proto flag is only needed in
reflection, checking the JvmField annotation presence is only needed in
backend
2018-07-18 13:24:45 +02:00
Alexander Udalov
79c2aa4acf
Minor, move tests on JvmField into subdirectory
2018-07-18 13:24:45 +02:00
Alexander Udalov
715abda908
Add JvmFlags, use flags field instead of is_moved_from_interface_companion
...
To be able to add more property-related flags into the same int field
later
2018-07-18 13:24:44 +02:00
Dmitry Petrov
5767f84c0e
Restrict retention for annotations with target EXPRESSION
...
#KT-13762 Fixed
2018-07-18 14:21:03 +03:00
Ilya Chernikov
70eaa0ec75
Cleanup annotations in script-util:
...
remove unused targets and runtime retention
2018-07-18 13:11:32 +02:00
Roman Elizarov
20c255948a
Coroutines migration adapters
2018-07-18 12:29:17 +03:00
Dmitry Petrov
ebe3fca45c
Enable ProperIeee754Comparisons in "progressive mode"
...
See https://youtrack.jetbrains.com/issue/KT-22723#focus=streamItem-27-2917037-0-0
2018-07-18 12:10:10 +03:00
Denis Zharkov
cc2280b95b
Fix test data after 89d99e3989
2018-07-18 11:14:46 +03:00
Mikhail Zarechenskiy
48606ad983
Advance bootstrap to 1.2.70-dev-491
2018-07-18 11:05:09 +03:00
Mikhael Bogdanov
bca6b98ea8
Fix test data
2018-07-18 08:41:48 +02:00
Mikhail Zarechenskiy
bb575866cb
Pass actual invoke parameters for inline functions with inline classes
...
#KT-25511 Fixed
2018-07-17 23:39:38 +03:00
Mikhail Zarechenskiy
77959247d2
Fix bridge generation for inline classes over Any type
2018-07-17 23:39:34 +03:00
Ilmir Usmanov
4811757d8d
Disable intercepted instrinsic in 1.3
...
Fix compiler bootstrapping.
2018-07-17 22:25:43 +03:00
Nicolay Mitropolsky
a616f6cca9
Uast: implicit receiver for local function calls (KT-25524)
2018-07-17 21:41:03 +03:00
Nicolay Mitropolsky
5212728a82
Uast: implicit receiver for function variables calls (KT-25524)
2018-07-17 21:41:03 +03:00
Alexander Udalov
53a57e8e1b
Reformat module 'deserialization', fix warnings/inspections
2018-07-17 20:26:31 +02:00
Alexander Udalov
ae6627fe94
Simplify code in JS serialization related to module descriptors
...
Do not use `JsModuleDescriptor<...>` where only its `data` is needed
2018-07-17 20:26:31 +02:00
Alexander Udalov
77405b2cca
Reformat module 'js.serializer'
2018-07-17 20:26:31 +02:00
Yan Zhulanow
37411c823d
Android Extensions: Check the backing 'virtualFile' validity before calling 'findFile()' (EA-124028)
2018-07-17 20:54:30 +03:00
Yan Zhulanow
a4b3653e1c
Debugger: Navigate to the right file in MPP projects (#KT-25152, #KT-25147)
2018-07-17 20:54:29 +03:00
Yan Zhulanow
02ee3aef3f
Kapt: Fix "Unknown option: infoAsWarnings" (#KT-25396)
2018-07-17 20:54:28 +03:00
Svyatoslav Kuzmich
1abb4f42ac
[JS IR BE] Add ranges to runtime, rangeTo for primitive numbers
2018-07-17 20:18:29 +03:00
Pavel V. Talanov
4c38899a2a
Improve error message on failing to get javaResolutionFacade
2018-07-17 17:37:22 +02:00
Pavel V. Talanov
770c280ba5
Light classes: handle broken context in case of supertype delegation
...
This lead to an exception being thrown frequently
Proper fix would be to prevent binding context from being corrupted
Known cases are hard to debug/reproduce
#EA-101081 Fixed
2018-07-17 17:37:20 +02:00
Ilmir Usmanov
991b4251f3
Remove redundant RequireKotlin annotations from coroutines' stdlib.
2018-07-17 17:31:03 +03:00
Ilmir Usmanov
38c4006d9e
Update bootstrap compiler.
2018-07-17 17:30:58 +03:00
Dmitry Savvinov
db1fc7f358
Use 'stableName' instead of 'name' in tests on module name
2018-07-17 17:14:22 +03:00
Mikhael Bogdanov
52b261e19e
Fix test data
2018-07-17 13:30:43 +02:00
Alexander Udalov
bca3e1b95b
Restore getDefaultImports for compatibility with an external plugin
...
(see ce34deb9af )
2018-07-17 12:48:43 +02:00
Roman Elizarov
2236049341
Wrapper for suspend fun main and @Test suspend fun testXXX functions.
2018-07-17 12:15:02 +03:00
Roman Elizarov
d33d21907d
SuccessOrFailure test on JVM added
2018-07-17 12:15:01 +03:00
Roman Elizarov
0b59061bfe
Coroutines debug probes
2018-07-17 12:15:01 +03:00
Roman Elizarov
78192ea712
Fixed createCoroutineFromSuspendFunction
...
Passes an object that extends BaseContinuationImpl to the
suspend function invocation, so that it can use .intercepted on it.
This requires implementation to track its state via label variable.
2018-07-17 12:14:59 +03:00
Roman Elizarov
d3982472a4
Explanatory comment to createCoroutineFromSuspendFunction
2018-07-17 11:28:48 +03:00
Roman Elizarov
96b5bb1b31
Fixed JVM Serialization problems:
...
* EmptyCoroutineContext readResolve fixed
* CombinedContext.writeReplace serializes all context elements
2018-07-17 11:28:38 +03:00
Roman Elizarov
e0f6165f10
Updated SuccessOrFailure:
...
* Parameter names for lambda
* getOrElse takes exception parameters
* fold added
* Improved docs
2018-07-17 11:26:49 +03:00
Nikolay Krasko
2a6dfba8bc
Check kotlinx.coroutines libraries used with Kotlin 1.3 in Gradle (KT-25251)
...
#KT-25251 In Progress
2018-07-17 02:46:34 +03:00
Nikolay Krasko
f9de91016a
Inspection for experimental coroutines imports migration (KT-25251)
...
#KT-25251 In Progress
2018-07-17 02:22:14 +03:00
Nikolay Krasko
5b34498162
Do not report code style warnings on overridden declarations (KT-25416)
...
#KT-25416 Fixed
2018-07-17 02:22:14 +03:00
Mikhail Zarechenskiy
b6db8971e4
Warn about annotations that targets non-existing accessors
...
#KT-15453 In Progress
2018-07-17 00:22:53 +03:00