Nikolay Krasko
36933a52ec
Remove code style settings irrelevant for Kotlin project
2018-07-05 16:15:36 +03:00
Ilmir Usmanov
bc8295b137
Minor: regenerate tests
2018-07-05 15:09:13 +03:00
Ilmir Usmanov
4ec82cad90
Minor: add test to call callable references from Java
2018-07-05 15:09:06 +03:00
Ilmir Usmanov
4e8cc53962
Minor: pass suspend flag to lambda's copy
2018-07-05 15:09:00 +03:00
Ilmir Usmanov
28ad498956
Use AnonymousFunctionDescriptor for suspend callable references
...
Also use it for local suspend functions, which allows us to remove hack
with dropSuspend.
Regenerate tests.
2018-07-05 15:08:49 +03:00
Ilmir Usmanov
eea95441c5
Add diagnostics tests. Forbid callable reference to coroutineContext
...
#KT-16908: Fixed
2018-07-05 15:08:42 +03:00
Ilmir Usmanov
f94b579d19
Implement callable references to suspend functions
...
In FE they have type KSuspendFunctionN
In BE they are treated like normal callable references with additional
parameter in invoke function.
2018-07-05 15:08:34 +03:00
Mikhail Zarechenskiy
5869274ff1
Disable errors in mod/rem tests that depend on language feature
...
Otherwise these tests will fail with LV=1.3
2018-07-05 12:59:43 +03:00
Mikhail Zarechenskiy
2939d9c8c6
Use correct lhs KotlinType & AsmType for is check generation
...
There were two problems:
- For asm type `OBJECT_TYPE` was used, which can be wrong in case of
inline classes, because it can be an underlying value of some inline class
- For KotlinType, type from rhs was used
2018-07-05 12:55:43 +03:00
Mikhail Zarechenskiy
4f490ac264
Fix generation of checkcast instructions for inline classes
...
Normalize LHS and RHS types to use only boxed ones and then let bytecode
optmizer reduce redundant boxing
2018-07-05 12:55:39 +03:00
Dmitry Savvinov
8eb7eab535
Make tests on -XXLanguage more tolerant to 1.2 -> 1.3 transition
2018-07-05 10:42:50 +03:00
Dmitry Savvinov
5cb949ad7f
Fix language features in tests for gradual migration to 1.3 (part 2)
...
In 1.3, due to changes in language, testdata for some tests can be
different from 1.2
We want to simlultaneously test both versions, so instead of fixing
language version in such tests, we split them into two: one with fixed
1.2, another with fixed 1.3
2018-07-05 10:42:49 +03:00
Dmitry Savvinov
6d733ff7b9
Disable ContracsDSL in 1.3
2018-07-05 10:42:38 +03:00
Dmitry Savvinov
984ef9c3b1
Parse testing directives in AbstractLoadJavaTest
2018-07-05 10:41:41 +03:00
Ilya Gorbunov
1266ba682c
Opt-in to use experimental unsigned types in tests
...
The opt-in is required to avoid side diagnostics about the experimentality.
2018-07-04 19:13:30 +03:00
Ilya Gorbunov
b5fabf3f72
Make unsigned types experimental (with warning if not opted-in)
2018-07-04 19:12:11 +03:00
Nikolay Krasko
71292bd681
Disable formatting inspection for unmodified files
2018-07-04 17:31:14 +03:00
Nikolay Krasko
370608d12f
Ignore more methods from stdlib in argument name hints (KT-18350)
...
#KT-18350 Fixed
2018-07-04 17:31:13 +03:00
Nikolay Krasko
dcc6579dcb
Modification trackers increment highlighting test
2018-07-04 17:31:10 +03:00
Vyacheslav Gerasimov
1cb97259aa
Add :compiler:ir.backend.common to kotlin-plugin fat jar
...
#KT-25225 Fixed
2018-07-04 17:17:39 +03:00
Alexey Sedunov
2efd467c42
JS: Fix detection of run configuration with preconfigured Mocha
...
#KT-25253 Fixed
2018-07-04 16:40:01 +03:00
Mikhael Bogdanov
be40127ab3
Mute coroutines ir-tests in jvm
2018-07-04 15:33:41 +02:00
Nicolay Mitropolsky
5d9807ac36
Uast: converting Unit to void on type mapping (KT-25249)
2018-07-04 16:16:22 +03:00
Alexey Tsvetkov
39fc7cffe1
Temporarily ignore Kapt3WorkersAndroid32IT
2018-07-04 15:15:57 +03:00
Alexey Tsvetkov
bab8c97c09
Allow overriding default Gradle version per test class
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
05fa8b7451
Add SDK jars to compile classpath for Kapt Workers task
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
bfc608de29
Close kapt context
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
3b18debee3
Test kapt with workers
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
efeea9d7d4
Update android tools versions in Gradle plugin tests
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
357518be0d
Remove projectDir input from KaptWithoutKotlincTask
...
It is redundant since the task would be restarted when project dir changes,
because paths of sources would also change
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
9b97108db4
Fix getting plugin version for kotlinKaptWorkerDependencies configuration
...
Previously the configuration would not work for non-android projects,
because it looked only at KotlinAndroidPluginWrapper for plugin version
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
43b7ffd823
Create kotlinKaptWorkerDependencies only once
...
#KT-25124 fixed
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
5bf5632886
Do not load annotation processors when generating stubs
...
#KT-25131 fixed
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
f438b7501c
Fix compilation of plugin projects in JPS
...
#KT-25218 fixed
2018-07-04 14:54:07 +03:00
Alexander Udalov
285912f556
Minor, add helper StackValue.constant(int)
2018-07-04 13:39:32 +02:00
Denis Zharkov
22a9cecfe0
Optimize KotlinPropertyAccessorsReferenceSearcher for case of no kt-files
...
Property names by accessors can be computed without resolving
java descriptors
#KT-11477 Fixed
#KT-16890 Fixed
2018-07-04 14:03:28 +03:00
Denis Zharkov
2d50ad82a5
Optimize SyntheticJavaPropertyDescriptor.Companion::findByGetterOrSetter
...
Do not force getContributedDescriptors call when we need to request
at most three names
2018-07-04 14:03:28 +03:00
Denis Zharkov
5e6a3673c8
Reformat SyntheticJavaPropertiesScope.kt
2018-07-04 14:03:28 +03:00
Alexey Sedunov
fc93f00c7b
Misc: Make LibraryEffectiveKindProvider cache an instance property
2018-07-04 13:34:20 +03:00
Ilya Chernikov
db73ed1d0c
Add 1.2.51 issues to changelog
2018-07-04 11:42:47 +02:00
Alexey Sedunov
5f69eebe66
Misc: Fix SOE due to wrong overloaded method call
...
#KT-25247 Fixed
2018-07-03 22:09:55 +03:00
Alexander Udalov
50904d4216
Add JvmFunctionExtensionVisitor.visitEnd
...
#KT-25223 Fixed
2018-07-03 19:15:34 +02:00
Ilya Gorbunov
cbc3480d9e
Split common builtin companion tests from JVM-only tests
...
Remove duplicated tests from NumbersJVMTest.
2018-07-03 19:58:53 +03:00
Svyatoslav Kuzmich
83f8cfaa66
[JS IR BE] hashCode, toString, number conversion support
2018-07-03 19:51:58 +03:00
Svyatoslav Kuzmich
a7a695f203
KJS: Add JsLoop AST interface and corresponding visitors
2018-07-03 19:51:58 +03:00
Roman Artemev
d130ba6f44
[JS IR BE] Update test data
2018-07-03 19:14:00 +03:00
Roman Artemev
47d088d4c5
[JS IR BE] Reimplement block decomposer lowering
2018-07-03 19:13:53 +03:00
Mikhail Zarechenskiy
e2c287c77e
Fix language feature for mod/rem tests for migration to 1.3 version
...
After 2e88f5c47d
2018-07-03 16:10:37 +03:00
Alexander Podkhalyuzin
7ee055fccc
Merge pull request #1745 from JetBrains/rr/suppressor
...
Introduce KotlinInspectionSuppressor
2018-07-03 14:37:39 +03:00
Svyatoslav Scherbina
226f16b44e
ir.tree: fix .originalKotlinType for transformed IR types
2018-07-03 09:55:12 +03:00