Dmitry Petrov
34548a0667
Fix primitive override with inline class in Kotlin-Java inheritance
2018-08-23 13:07:07 +03:00
Alexander Udalov
3442c7385f
Fix compilation in KotlinTestUtils for IDEA 173
2018-08-21 14:05:07 +02:00
Alexander Udalov
97c0f1712a
Fix compilation in KotlinTestUtils for AS 3.1 & 3.2
2018-08-21 14:03:28 +02:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Denis Zharkov
944b0d058a
Allow calling some pieces of the experimental coroutine API
...
- Calling suspend functions is allowed
- Presence of suspend function type still makes declaration
unusable unless it belongs to a value parameter as a top-level type
containing less then three parameters
Still, warning should be emitted because they will become unsupported in 1.4
#KT-25683 In Progress
2018-08-21 13:44:02 +03:00
victor.petukhov
0a58898817
Add diagnostic spec tests generator and validator, helper functions and classes
2018-08-14 17:33:54 +03:00
Mikhail Zarechenskiy
0fff8ebf71
Fix SOE after enabling SAM conversions
2018-08-10 17:24:19 +03:00
Denis Vnukov
65c79ecfe9
Primitive support for LocalVariables for function parameters
2018-08-09 16:13:21 +03:00
Alexander Udalov
5dadddaecd
Fix version-specific bunch files for KotlinTestUtils
...
After 5da8ce844a
2018-08-08 12:11:58 +02:00
Dmitry Savvinov
2b8ca60c05
Add SKIP_JAVAC in tests where behaviour has diverged with IDEA resolve
...
See a71f09022c
2018-08-08 12:12:15 +03:00
Alexander Udalov
fe829add44
Minor, use TEMP_DIR/TESTDATA_DIR in CLI tests on xml build files
...
Otherwise the "outputDir" in these tests was treated as relative to the
project root, and starting from 63b4302cea , running these tests resulted
in the "whatever" directory being created in the project root
2018-08-07 13:38:30 +02:00
Alexander Udalov
19feacb96b
Minor, expand TESTDATA_DIR with absolute path in CLI tests
...
To be able to use it correctly inside an xml build file where, if the
path is not absolute, it's treated as relative to the build file path
(which is TMP_DIR in several tests of the subsequent commit)
2018-08-07 13:38:30 +02:00
Alexander Udalov
5da8ce844a
Minor, move ContentRoot and KotlinSourceRoot to module 'cli'
...
Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
2018-08-07 13:38:30 +02:00
Alexander Udalov
14b8f4b52b
Minor, change package of outputUtils.kt
2018-08-07 13:38:30 +02:00
Mikhail Zarechenskiy
659289b41a
Report diagnostics about experimentality on unsigned literals
...
#KT-25580 Fixed
2018-08-06 17:45:22 +03:00
Alexander Udalov
6f9441d3f4
Do not output empty non-root packages in tests with txt
...
Mostly to avoid listing every internal package in
kotlin-stdlib/kotlin-reflect, as in
https://github.com/JetBrains/kotlin/blob/acd5b62148d797ffd24c4811d1d663f0c1ae7885/compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/conversionOfSignedToUnsigned.txt#L144
2018-08-06 13:43:32 +02:00
Vyacheslav Gerasimov
ebb90f8260
183: Build against 183-SNAPSHOT
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Ilmir Usmanov
0c867b4804
Disable callable references to suspend functions in 1.2
...
#KT-25604: Fixed
2018-08-02 18:55:49 +03:00
Vyacheslav Gerasimov
0103c0d2fd
Switch to 182 platform
2018-08-02 18:17:06 +03:00
Mikhael Bogdanov
7a98f5c5f7
Add 'boxAgainstJava' tests to ir test suite
2018-08-02 13:19:26 +02:00
Mikhael Bogdanov
261a00eec7
Remove IrCompileKotlinAgainstInlineKotlinTestGenerated tests
2018-08-02 13:19:26 +02:00
Mikhael Bogdanov
b22352a60d
Get rid of 'externalPackageFragments' and 'dependencyModules' in IrModuleFragment
2018-08-01 12:29:29 +02:00
Mikhail Zarechenskiy
acd5b62148
Introduce limited constant conversions for Kotlin/Native
...
#KT-25320 Fixed
2018-07-29 04:32:32 +03:00
Alexander Udalov
1a51132884
Add CLI tests on internal from other module (JVM, JS, common)
2018-07-27 18:51:42 +02:00
Dmitry Petrov
566b5856ec
Constructor call normalization mode depends on language version
2018-07-27 09:52:29 +03:00
Mikhail Zarechenskiy
dddaa74dac
Propagate language version settings into IR type translator
2018-07-24 20:06:35 +03:00
Dmitry Petrov
92a8448042
DiagnosticsTestWithJsStdLib should use proper language version settings
2018-07-20 10:39:51 +03:00
Alexander Udalov
1464a4ac58
Load Java parameter names correctly in BinaryJavaMethod
...
PSI-based implementation (accessible via
`-Xuse-old-class-files-reading`) loads parameter names from the
"MethodParameters" attribute if it's present, so our own implementation
should as well.
This metadata doesn't seem supported in the java.lang.model.element API
though, so SymbolBasedValueParameter (which is used in `-Xuse-javac`)
will continue to have incorrect behavior for now
#KT-25193 Fixed
2018-07-18 18:15:09 +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
Ilmir Usmanov
6ba2baa9da
Deserialize constructors and properties with version requirement 1.3
...
if they have suspend function type in their descriptors.
Also, review fixes.
#KT-25256: Fixed
2018-07-11 14:20:46 +03:00
Ilmir Usmanov
c460593b7d
Forbid coroutines in language version is 1.3 and api version is less
2018-07-11 14:20:45 +03:00
Ilmir Usmanov
5b7e099842
Read old suspend functions in 1.3
2018-07-11 14:20:41 +03:00
Alexander Udalov
e937fe8258
Move PackagePartProvider to module descriptors.jvm
2018-07-10 15:16:49 +02:00
Alexander Udalov
2cb4b7c6d4
Extract MetadataPartProvider out of PackagePartProvider
2018-07-10 15:16:49 +02:00
Alexander Udalov
e25bc2865f
Remove PackagePartProvider from ResolverForProjectImpl
...
To be able to move it to JVM-specific modules, and to provide a
replacement for common module analysis
2018-07-10 15:16:49 +02:00
Mikhail Zarechenskiy
8c075bc622
Add ability to use unsigned types in LoadJava tests
...
This is a temporary solution, which will be completely removed in 1.3, see KT-25226
2018-07-09 20:05:38 +03:00
Nikolay Krasko
90f1829fb8
Minor: find tested element with <caret> in ResolveElementCacheTest.kt
2018-07-09 18:07:24 +03:00
Denis Zharkov
8c65e55c02
Fix some of the bytecodeText tests
...
The changes are necessary because of release coroutines support:
- Get rid of suspendCoroutineOrReturn calls. It's anyway irrelevant
to what is being tested here
- In varValueConflictsWithTable.kt, variables slots have been shifted
because the variable for continuation's exception was removed
- In varValueConflictsWithTableSameSort.kt, a variable has been introduced
to preserve the same slot numbers for old variables.
Otherwise, they become shifted and to the second slot,
and there are a lot of irrelevant "ALOAD 2" instructions
This change is another example of why bytecode text tests are evil
2018-07-09 15:27:19 +03:00
Denis Zharkov
820506d9c6
Fix tests after new Continuation API support
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Denis Zharkov
170086250b
Support new Continuation API in JVM BE
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Denis Zharkov
aee0afbff1
Support CoroutineUtil.kt helpers within AbstractCompileKotlinAgainstKotlinTest
2018-07-09 15:27:19 +03:00
Denis Zharkov
f23a0c8fea
Add ContinuationAdapter to coroutine tests helpers
...
It allows having the same Continuation implementations for different
API versions
2018-07-09 15:27:19 +03:00
Denis Zharkov
f01e690f49
Minor. Use coroutine test helpers for inline/diagnostics tests
...
It should help with decreasing test data copy-pasting when
testing against release / pre-release coroutines
2018-07-09 15:27:19 +03:00
Denis Zharkov
1ced127660
Minor. Move helpers for coroutines tests to kt-file
2018-07-09 15:27:19 +03:00
Alexander Udalov
959c2f4843
Get rid of split packages in descriptors, descriptors.jvm, deserialization
...
Also move some other files to related packages and reformat moved files
2018-07-06 14:08:35 +02: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
16fb5f6901
Set language and api versions automatically for unsigned types box tests
...
Remove InlineClasses feature directive from tests
2018-07-03 03:52:18 +03:00
Ilya Gorbunov
181a8d7d6a
Extract default language version settings for diagnostics tests
...
And override it in unsigned types diagnostics tests.
Remove InlineClasses feature directive from tests, because it's already
enabled in that language version.
2018-07-03 03:52:18 +03:00