Dmitry Petrov
a1574bf50a
JVM box tests for KT-30548
2020-12-24 19:35:36 +03:00
Dmitriy Novozhilov
daa6255ab7
Update testdata of PsiCheckerSealedTest after 07b980fe
2020-12-24 17:53:08 +03:00
Roman Golyshev
f00e5b1992
FIR: Check relativeClassName of found class in JavaSymbolProvider
...
`ClassId` denotes how class is nested; however, you can find
`foo/bar/Outer.Nested` class by `ClassId(foo/bar/Outer/Nested)`. This
will lead to inconsistencies when working with class symbol later
This is also important to `FirQualifierResolverImpl::resolveSymbol`
which detects correct `ClassId` by traversing all symbol qualifiers
We check only `relativeClassName`, because we want to be able to find
classes without package specified
Also, fix test data of resolve tests that have been passing because of
check absence
2020-12-24 14:25:48 +00:00
Ilya Goncharov
2ce51a4c11
[Gradle, JS] Fix tests with decamelizing names
...
^KT-43237 fixed
2020-12-24 16:35:29 +03:00
Ilya Goncharov
0bd4de65e1
[Gradle, JS] Fix upper case names in js files, decamelize instead
...
^KT-43237 fixed
2020-12-24 16:35:29 +03:00
Ilmir Usmanov
9c67d8f89e
IC Mangling: Correctly mangle functions with generic return type
...
if the type's parent is inline class.
#KT-43050 Fixed
#KT-26130 Fixed
#KT-32384 Fixed
2020-12-24 14:29:48 +01:00
Andrei Klunnyi
f8cca288ab
KT-44075 Sealed interfaces: New Kotlin Class/File menu update
...
^KT-44075 Fixed
2020-12-24 13:07:52 +00:00
Dmitriy Dolovov
740b8a9aec
[Commonizer] Fix computing outer class type arguments
2020-12-24 15:55:36 +03:00
Dmitriy Novozhilov
8bd4e67341
[Test] Drop obsolete FIR tests
2020-12-24 14:58:06 +03:00
Dmitriy Novozhilov
660c438ebe
[Test] Migrate tests of foreign annotations to new infrastructure
...
This commit includes:
- test runners for foreign annotation tests
- minor changes testdata related to changed directives syntax
- dropping tests with javac integration: old javac tests actually ran
compiler without javac because of bug in configuration, so some
nullability annotations features are not supported in javac mode.
It's fine to drop it since javac mode is not fully supported
by compiler
2020-12-24 14:58:05 +03:00
Dmitriy Novozhilov
ef3d966d53
[Test] Fix dependencies in task [JPS] Generate All Tests
2020-12-24 14:58:04 +03:00
Dmitriy Novozhilov
8689fc43cd
[Test] Move java generation utils to :compiler:tests-compiler-utils module
2020-12-24 14:58:02 +03:00
Dmitriy Novozhilov
cb7b1652e7
[Test] Extract MockLibraryUtil to :compiler:tests-compiler-utils
...
Also provide MockLibraryUtilExt with bridges to MockLibraryUtil
with JUnit4Assertions
2020-12-24 14:58:01 +03:00
Dmitriy Novozhilov
eadec08937
[Test] Reformat MockLibraryUtil according to code style
2020-12-24 14:57:59 +03:00
Dmitriy Novozhilov
e287742842
[Test] Add ability to provide additional analysis flags in EnvironmentConfigurator
2020-12-24 14:57:58 +03:00
Dmitriy Novozhilov
c4691de72d
[Test] Deprecate AbstractDiagnosticsTest in old test infrastructure
2020-12-24 14:57:57 +03:00
Dmitriy Novozhilov
a9f913a97f
[Test] Migrate AbstractDiagnosticsWithJdk15Test to new infrastructure
2020-12-24 14:57:56 +03:00
Dmitriy Novozhilov
02fb11a2cd
[Test] Fix double reading of module directives
2020-12-24 14:57:55 +03:00
Dmitriy Novozhilov
0e3ed3fee6
[Test] Remove duplicating code from ClassicFrontend2IrConverter
2020-12-24 14:57:53 +03:00
Denis.Zharkov
1a03d5c93e
Fix ISE when inferring type of a property that delegates to itself
...
^KT-37796 Fixed
2020-12-24 14:06:20 +03:00
Denis.Zharkov
cbb8459e4e
Fix AE: No receiver found on incomplete code with $-signs
...
^KT-24158 Fixed
2020-12-24 14:06:20 +03:00
Denis.Zharkov
77d4a46a6b
Fix light classes exception occurring on obfuscated Kotlin libraries
...
^KT-29454 Fixed
2020-12-24 14:06:20 +03:00
Denis.Zharkov
7b9f6c1560
Fix exceptions caused by cyclic dependency between ModuleDescriptor and JvmBuiltIns
...
^KT-39105 Fixed
^KT-42001 Fixed
See also EA-216604 and EA-211562
2020-12-24 14:06:20 +03:00
Denis.Zharkov
5a8dc00a0d
Rename JvmBuiltInsSettings -> JvmBuiltInsCustomizer
2020-12-24 14:06:19 +03:00
Dmitriy Novozhilov
70ae756083
Revert "[Test] Save TargetBackend instead of BackendKind in TestModule"
...
This reverts commit 29d923d5
2020-12-24 13:57:02 +03:00
Dmitriy Novozhilov
07b980fea0
[FE] Fix error message of SEALED_INHERITOR_IN_DIFFERENT_PACKAGE diagnostic
2020-12-24 13:47:45 +03:00
Dmitriy Novozhilov
29d923d50d
[Test] Save TargetBackend instead of BackendKind in TestModule
2020-12-24 13:44:05 +03:00
Dmitriy Novozhilov
70c4bdf32e
[FE] Detect recursion when typealias referenced as annotation in its RHS
...
#KT-14612 Fixed
2020-12-24 13:44:04 +03:00
Dmitry Petrov
d3349197ba
Minor: regenerate tests
2020-12-23 21:50:12 +03:00
Dmitry Petrov
4e261cc358
JVM_IR KT-24258 fix NPE message for delegated properties
2020-12-23 21:50:10 +03:00
Dmitry Petrov
ad8bed078f
JVM box tests for KT-24193
2020-12-23 21:50:09 +03:00
Dmitry Petrov
a8d848ccbd
JVM box tests for KT-23974
2020-12-23 21:50:08 +03:00
Dmitry Petrov
3f7a776fb8
JVM box tests for KT-21092
2020-12-23 21:50:07 +03:00
Dmitry Petrov
0841a6b0ea
irText tests for KT-19306
2020-12-23 21:50:06 +03:00
Dmitry Petrov
9f908cdf7c
JVM box tests for KT-16752
2020-12-23 21:50:05 +03:00
Ilmir Usmanov
8bfcef415e
Do not generate variables for non-generated fields
...
Use attributes instead of classes.
#KT-43048 Fixed
2020-12-23 19:45:15 +01:00
Iaroslav Postovalov
8a7bc2ef6f
Rename continuation fields according the convention and count them in IR
2020-12-23 19:45:13 +01:00
Iaroslav Postovalov
cd2b05eb00
Discard misc.xml changes
2020-12-23 19:45:11 +01:00
Iaroslav Postovalov
165ba85337
Remove useless OptIn annotation
2020-12-23 19:45:09 +01:00
Iaroslav Postovalov
b13822bb2d
Remove unrelated change
2020-12-23 19:45:07 +01:00
Iaroslav Postovalov
6f34f00c61
Do not generate the field for unused parameters in suspend lambdas
2020-12-23 19:45:04 +01:00
Ilmir Usmanov
f49cf2d5ca
IC Mangling: correctly mangle inline default functions
...
#KT-43682 Fixed
2020-12-23 18:13:09 +01:00
Ilya Kirillov
7c9cf45a3f
FIR IDE: fix testdata
2020-12-23 17:16:32 +01:00
Ilya Kirillov
b2b364eca6
FIR IDE: resolve fir file to BODY_RESOLVE when it requested by getOrBuildFir
2020-12-23 17:16:30 +01:00
Ilya Kirillov
fa42f9302e
FIR IDE: unmute passing test
2020-12-23 17:16:29 +01:00
Ilya Kirillov
ce77903898
FIR IDE: add deadlock checking for read/write resolve locks
2020-12-23 17:16:28 +01:00
Ilya Kirillov
0ec152e457
FIR IDE: fix deadlock in override check
...
We should not call withFir nestedly as resolving in read action causing deadlocks
2020-12-23 17:16:26 +01:00
Ilya Kirillov
8a17a16ee2
FIR IDE: consider modification in invalid PSI as OOBM
2020-12-23 17:16:25 +01:00
Ilya Kirillov
d06a5fb413
FIR IDE: disable some script stuff in FIR plugin as causes exceptions
2020-12-23 17:16:23 +01:00
Ilya Kirillov
70b1edb81d
FIR IDE: allow using some light classes stuff from EDT :(
...
IJ Platform can call light classes methods from EDT from random places
2020-12-23 17:16:22 +01:00