Svyatoslav Kuzmich
ea8ade0852
[JS] Refactor and comment for typeOf fix
2019-11-25 20:25:03 +03:00
Svyatoslav Kuzmich
dc336c3c8a
[JS] Add marker function getReifiedTypeParameterKType to runtime
...
So compiler bugs would produce a nicer error message instead of:
"TypeError: getReifiedTypeParameterKType is not a function"
2019-11-25 20:25:03 +03:00
Svyatoslav Kuzmich
600fb723f4
[JS] Fix typeOf for some reified type parameters
...
Fix getting kType metadata in cases when corresponding jsClass value
is passed through temporary variable.
This can happen when jsClass expression is not consided trivial by
local variable optimizer. This happens for object declarations from
different modules, for example kotlin.Unit
2019-11-25 20:25:02 +03:00
Roman Artemev
c4d993d14c
[KLIB] Fix top level property index. Include const properties as well.
2019-11-25 20:22:04 +03:00
Roman Artemev
1e4f8b2946
[JS IR] Do not forbid typeOf inlining if it is not required
2019-11-25 20:22:03 +03:00
Roman Artemev
2e22ddba39
[JS IR] Fix annotation constructor body generation
2019-11-25 20:22:03 +03:00
Roman Artemev
c5e25a0382
[JS IR] Make PrivateMembersLowering global to handle inlined private references correctly
...
- Fixes [KT-33334]
2019-11-25 20:22:03 +03:00
Roman Artemev
9946feb66c
[JS IR] Fix name clash between class members defined on prototype
...
- Fixes [KT-33327]
2019-11-25 20:22:03 +03:00
Roman Artemev
987c6ab3ee
[JS IR] Roll making Char inline class back
...
- un/mute falling tests
2019-11-25 20:22:03 +03:00
Leonid Startsev
b9ac1341ff
Export generic serializer constructor from JS module
...
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/609
2019-11-25 20:06:15 +03:00
Leonid Startsev
73b9d2466a
Do not report 'Missing @Serializable on enum with @SerialInfo' if enum
...
has custom serializer
#KT-34991 Fixed
2019-11-25 20:06:14 +03:00
Mads Ager
98ceee784a
JVM_IR: More special bridge rewriting.
...
If there is an existing method that will have its argument types
remapped to boxed types, make sure to reflect that in the IR so
that code will be generated for a boxed value instead of a
primitive value.
2019-11-25 17:37:57 +03:00
Ilya Kirillov
f368d9761a
Fix for loop conversion when multiple initializers are present
...
#KT-35074 fixed
2019-11-25 17:01:46 +03:00
Ilya Chernikov
b73625ad9e
Switch main-kts to the updated resolvers infrastructure
2019-11-25 14:46:32 +01:00
Ilya Chernikov
baec10fb40
Update apache ivy version to 2.5.0
...
#KT-34893 fixed
2019-11-25 14:46:32 +01:00
Ilya Chernikov
4234c5ec31
Fix ivy resolver: deps config and maven repos:
...
Transitive dependencies weren't fetched properly in some cases, because of the two problems:
- missing dependency configuration for the root dependency
- using URLResolver for the maven-based (IBiblio) resolvers
Also adding resolver name for easier debugging.
2019-11-25 14:46:32 +01:00
Dmitriy Novozhilov
5e5038416e
Revert "tmp"
...
This reverts commit 3e336913
2019-11-25 16:20:06 +03:00
Dmitriy Novozhilov
3e336913b6
tmp
2019-11-25 14:44:46 +03:00
Dmitriy Novozhilov
4fc554fa9a
[FIR-TEST] Add test with unresolved SAM usage of Comparator
2019-11-25 14:44:46 +03:00
Dmitriy Novozhilov
98af866417
[FIR] Fix stopping in AbstractFirUseSiteMemberScope
2019-11-25 14:44:46 +03:00
Dmitriy Novozhilov
52caa6a58d
[FIR] Don't recreate type resolver in FirSpecificTypeResolverTransformer
2019-11-25 14:44:45 +03:00
Dmitriy Novozhilov
841ba6ea11
[FIR] Add generating of rawBuilder tests for light tree
2019-11-25 14:44:45 +03:00
Dmitriy Novozhilov
43e621530f
[FIR] Add type parameters to FirQualifierExpression
...
It is needed for resolving qualifiers with type arguments
like `Array<String>::class`
2019-11-25 14:44:44 +03:00
Victor Turansky
9330547f87
Gradle 6.0.1 support. Fix Yarn loading progress logging
...
Details - https://github.com/michel-kraemer/gradle-download-task/issues/143
Otherwise - no loading progress log
2019-11-25 13:00:46 +03:00
Pavel Kirpichenkov
4622041706
Update box test for unsigned to signed conversions
...
Updated test checks, that large unsigned numbers are converted to corresponding
negative signed numbers properly. Using unsinged constants instead of signed
in test allows to remove supressed OI error as well as use test with NI.
2019-11-25 12:22:58 +03:00
Yan Zhulanow
076166c22f
Debugger: Generate line numbers for class initializers with a number on the 'init' keyword (KT-16277)
...
Debugger tests not absent as they use the bootstrap version of kotlinc.
Obviously, this change is not present in it yet.
2019-11-25 17:26:31 +09:00
Yan Zhulanow
bebc8974b2
Report 5308947: check module validity before asking for library versions
2019-11-25 17:26:30 +09:00
Yan Zhulanow
cf620cc60d
Debugger: Synchronize "Add field breakpoint" dialog with the platform code
2019-11-25 17:26:30 +09:00
Yan Zhulanow
75b366fc5e
EA-211653: Wrap field breakpoint dialog into a transaction guard
2019-11-25 17:26:30 +09:00
Yan Zhulanow
ffeef6c18d
EA-210460: Use 'safeAllLineLocations()' instead of throwing 'allLineLocations()'
2019-11-25 17:26:30 +09:00
Yan Zhulanow
aaa45425da
EA-210002: handle interruption in case of background inline callable searcher task
2019-11-25 17:26:30 +09:00
Yan Zhulanow
36073ef61e
EA-209923: Add missing read action
2019-11-25 17:26:30 +09:00
Yan Zhulanow
69d5115b89
EA-214241: Remove worthless error reporting
2019-11-25 17:26:29 +09:00
Yan Zhulanow
16c4b0e458
EA-210823: Fix AIE in breakpoint applicability test
2019-11-25 17:26:29 +09:00
Yan Zhulanow
ab06f772fc
EA-209419: Fix read action requirement in Light constant evaluator
2019-11-25 17:26:29 +09:00
Yan Zhulanow
2983c87212
EA-215308: Fix unsafe check casts in template entry handling
2019-11-25 17:26:29 +09:00
Yan Zhulanow
3534d4af36
EA-215324: Fix "Module already disposed" in Scratch combo-box
2019-11-25 17:26:29 +09:00
Yan Zhulanow
3d17af0ada
EA-215375: Check range, not rangeMarker with nullable 'range' inside
2019-11-25 17:26:29 +09:00
Yan Zhulanow
89bd3b8767
EA-215872: Check text range validity before 'getText(range)'
2019-11-25 17:26:28 +09:00
Yan Zhulanow
49bcb103ef
EA-216005: Do not request KotlinFacetSettingsProvider for dead projects
2019-11-25 17:26:28 +09:00
Yan Zhulanow
f91a84872a
EA-216299: fix SIOOBE in completion
2019-11-25 17:26:28 +09:00
Yan Zhulanow
f75288b480
EA-216333: check PsiElement validity before light class generation
2019-11-25 17:26:28 +09:00
Yan Zhulanow
59296d6a6b
EA-217068: Add missing read action
2019-11-25 17:26:28 +09:00
Yan Zhulanow
e12f17d5dc
EA-217069: Add missing read action
2019-11-25 17:26:28 +09:00
Yan Zhulanow
54203100bc
EA-217072: Add missing read action
2019-11-25 17:26:28 +09:00
Yan Zhulanow
6a4b658ad4
EA-217153: Add line count check
2019-11-25 17:26:27 +09:00
Yan Zhulanow
ab0f841642
Debugger: Provide fixed implementation of 'toString()' for lambdas (KT-32691)
2019-11-25 17:26:27 +09:00
Yan Zhulanow
82a1750d26
Debugger: Forbid 'Nothing' constructor calls in evaluated code (KT-33093)
2019-11-25 17:26:27 +09:00
Pavel Kirpichenkov
55b3637f03
Fix case of inner object usage in missing supertypes checker
...
FakeCallableDescriptorForObject instance, which is not ConstructorDescriptor,
is checked with call checkers when object's contents are being used.
Checker of missing supertypes should not be run against this fake descriptor.
Object's members belong to separate member scope, so their resolution doesn't
force containing class' supertypes evaluation. I.e. object's methods
may work fine even if some supertypes of containing class are missing.
2019-11-25 10:57:52 +03:00
Mark Punzalan
5afab1ac2b
[FIR] FIR2IR: Populate calls with type arguments and function type
...
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00