Pavel Kirpichenkov
ffc3d8bdfc
Introduce @FrontendInternals annotation
...
#KT-39643
2020-08-05 21:44:47 +03:00
Sergey Igushkin
eff5839369
"Kotlin Multiplatform Projects are an ~experimental~ Alpha feature."
2020-08-05 22:01:12 +04:00
Ilmir Usmanov
6c475e614a
Minor. Update debugger tests
2020-08-05 19:47:55 +02:00
Ilmir Usmanov
68342a1f72
Initialize fake inliner variables on resume path
...
Otherwise, this will cause R8 to complain.
2020-08-05 19:47:55 +02:00
Ilmir Usmanov
bb5a99ec18
Do not put $completion to LVT if is dead
2020-08-05 19:47:54 +02:00
Florian Kistner
9925866293
203: Fix compilation
2020-08-05 19:36:43 +02:00
Florian Kistner
c792092410
Bump fastutil version to match 203
2020-08-05 19:36:42 +02:00
Nikita Bobko
c5398e8317
Move 'radixPrefix' from compiler modules to IDE modules
...
`radixPrefix` is used only in IDE now. So let's put it into IDE modules.
This commit is done in order to be able to use code dependent on
`radixPrefix` in `kotlin-ide` repo, because `kotlin-ide` depends on
1.4.0 artifacts of compiler. And `radixPrefix` isn't presented in
those artifacts
2020-08-05 20:17:17 +03:00
Sergey Igushkin
093d4b3108
Revert "Fix typealias usage nullability and annotations lost in deserialization"
...
This reverts commit 070848a1
2020-08-05 20:17:49 +04:00
Konstantin Tskhovrebov
5edbc75d7b
Update KMM plugin user texts.
...
#Fixed KMM-324
2020-08-05 18:37:27 +03:00
Jinseong Jeon
b57794d96e
IR util: IrExpression.isSafeToUseWithoutCopying
2020-08-05 17:07:27 +03:00
Jinseong Jeon
7ef1c74bbf
FIR2IR: apply adapted reference conversion to coercion-to-unit
2020-08-05 17:07:27 +03:00
Mikhail Glukhikh
5f80bfd5d4
[FIR] Don't report UNINITIALIZED_VARIABLE on lateinit local variable
2020-08-05 16:47:51 +03:00
Natalia Selezneva
54d96a2dd7
UI for standalone gradle scripts
...
^KT-39790 Fixed
2020-08-05 15:22:22 +02:00
Mikhail Glukhikh
fc874e72b1
[FIR2IR] Initialize components a bit earlier to prevent lateinit errors
2020-08-05 12:11:34 +03:00
Mikhail Glukhikh
17b289fa00
[FIR] Code cleanup: get rid of FirClass.buildUseSiteMemberScope()
2020-08-05 12:11:34 +03:00
Mikhail Glukhikh
8bb5488a26
[FIR] look at intersectionOverride during override processing
...
This commit fixes some BB tests broken by previous commit
2020-08-05 12:11:34 +03:00
Mikhail Glukhikh
f1356a809e
Fir2IrLazySimpleFunction: generate overridden symbols via FirTypeScope
2020-08-05 12:11:33 +03:00
Alexander Dudinsky
52c01abb83
Increase Xmx size after investigation OOM problem in KMM-316
2020-08-05 10:45:16 +03:00
Alexander Dudinsky
d012cd3272
Add kotlin-test-junit:install in dependencies for the kotlin-plugin install
2020-08-05 10:45:16 +03:00
Alexander Dudinsky
ea0099aa39
Fix testPlatformToCommonExpByInComposite.
...
In 9d362875da build started fail if mpp
or js targets not configured.
The test testPlatformToCommonExpByInComposite was fixed due it.
2020-08-05 10:45:16 +03:00
Alexander Dudinsky
05d6217f78
Changed gradle-plugin version in Gradle tests.
...
When 6.5.1 Gradle version was added, more tests have began to fail
because of legacy gradle-plugin versions (1.1., 1.2.) which are not
compatible with the new version of Gradle. This commit updates the used
version of the Gradle plugin to the latest stable (1.3.72) and makes it
configurable from tests.
2020-08-05 10:45:15 +03:00
Alexander Dudinsky
6652a7072c
Fix testData due to KT-40551.
...
Starting from version 1.3.60, unnecessary dependencies with runtime
scopes have been added for modules jvmTest and jsTest. After updating
the plugin version in tests from 1.3.50 to 1.3.72 and master,
tests began to fail because of this. In order not to stop other checks
in tests, they were redone for the current behavior with unnecessary
dependencies.
After fixing bug KT-40551, the old behavior in tests will be returned.
2020-08-05 10:45:15 +03:00
Alexander Dudinsky
0298795b18
Add gradle.properties with kotlin.stdlib.default.dependency=false for tests
...
In the master version of plugin dependencies on stdlibs are enabled
by default. It is not expected for some tests.
Flag kotlin.stdlib.default.dependency=false fixed it.
2020-08-05 10:45:15 +03:00
Alexander Dudinsky
bc623e97ec
Add Gradle version 6.5.1 for tests.
2020-08-05 10:45:15 +03:00
Alexander Dudinsky
1da05c54be
Change gradle-plugin versions for tests from 1.3.50 to 1.3.72
2020-08-05 10:45:14 +03:00
Nick
f15f5bccc8
[FIR] Add more diagnostic messages
2020-08-05 10:41:06 +03:00
Victor Petukhov
f45de9d8fb
NI: approximate not top-level captured types during code generation
...
^KT-40693 Fixed
2020-08-05 10:36:36 +03:00
Ilya Matveev
f6d7e7c52a
CocoaPods: Fix setting custom framework name
...
The main scheme of a synthetic project generated for
pod import has the same name as the podspec generated
for the kotlin module (== Gradle project name). But
when starting an Xcode build, we specify the -scheme
argument to a framework name instead of project.name.
By default they are the same, but if a custom framework
name is specified, xcodebuild fails.
Issue #KT-40801 fixed
2020-08-05 06:46:53 +00:00
Mikhail Zarechenskiy
a45f73867a
Add compatibility resolve when SAM conversion was applied partially
...
#KT-40646 Fixed
2020-08-05 00:03:33 +03:00
Sergey Igushkin
070848a1c1
Fix typealias usage nullability and annotations lost in deserialization
...
This fixes a regression introduced by the commit 4b0da0688a which made
deserializer expand typealiases but didn't take nullability and use site
annotations into account.
Issue #KT-40824 Fixed
2020-08-05 00:19:52 +04:00
Nick
ec4f04095c
[FIR] Rearrange FirErrors.kt
2020-08-04 22:40:09 +03:00
Nick
207027b84c
[FIR] Fix light tree's supertype FirDelegatedConstructorCall source
2020-08-04 22:37:43 +03:00
Nick
a59cedcd39
[FIR] Fix non-fake sources for constructor delegates
2020-08-04 22:37:42 +03:00
Nick
f74eb07203
[FIR] Fix incorrect diagnostic behaviour + several enum diagnostics
2020-08-04 22:28:49 +03:00
Nick
b76f757d47
[FIR] Add diagnostic for missing primary constructor
2020-08-04 22:28:49 +03:00
Nick
0f213e58db
[FIR] Add diagnostic for primary constructor not called
2020-08-04 22:28:48 +03:00
Nick
bb0e1b7390
[FIR] Add diagnostic for constructor delegation cycles
2020-08-04 22:28:48 +03:00
Mikhail Glukhikh
e841b3a77b
[FIR] Add diagnostic collection to KotlinToJVMBytecodeCompiler
2020-08-04 22:27:18 +03:00
Mikhail Glukhikh
9c3b8484b9
[FIR TEST] Add CLI test with should-be-error (not yet)
2020-08-04 22:27:18 +03:00
Ilmir Usmanov
824991a9dd
Minor. Add tests.
2020-08-04 15:42:38 +02:00
Ilmir Usmanov
bbd4c21595
Cleanup spilled variables
...
#KT-16222
2020-08-04 15:42:37 +02:00
Ilmir Usmanov
999b41068b
Minor. Refactor variables spilling
...
Split information collection and method node mutation.
2020-08-04 15:42:37 +02:00
Ilmir Usmanov
405c9743ef
Do not spill dispatch receiver of suspend functions if it is not used
...
#KT-20571
2020-08-04 15:42:36 +02:00
Jinseong Jeon
5db7957230
FIR2IR: use type arguments from fully expanded type
2020-08-04 14:44:38 +03:00
Ilya Kirillov
606dc2f723
Fix binary compatibility problems in ImportInsertHelper & ShortenReferences
2020-08-04 12:46:13 +03:00
Victor Petukhov
af48f08f9c
NI: take into account flexible types during capturing arguments from expression
...
^KT-40544 Fixed
2020-08-04 12:38:04 +03:00
vldf
65ebd02a39
[FIR] Fix for CanBeReplacedWithOperatorAssignment Checker
2020-08-04 11:20:42 +03:00
Mikhail Glukhikh
6f3df6faf4
[FIR] Regenerate extended checker tests
2020-08-04 09:35:36 +03:00
Mikhail Glukhikh
181a8bb79e
[FIR TEST] Mute failing BB test with Byte/Short.and usage
2020-08-04 08:59:16 +03:00