Dmitriy Novozhilov
4d5a4ccd6b
[FE 1.0] Don't fail on calls of functions with contracts from object
...
^KT-51704 Fixed
2022-05-19 07:14:22 +00:00
Ivan Kylchik
20d0a531df
Add new tests to check evaluation of intrinsic сonsts
2022-05-18 21:20:02 +03:00
Ivan Kylchik
51ccc32a3f
Update test data after introducing IntrinsicConstEvaluation annotation
2022-05-18 21:19:57 +03:00
Iven Krall
ba5c85d6f2
KT-35811: Type parameter angle brackets followed by equal sign are parsed incorrectly if whitespace is missing
2022-05-18 17:23:40 +00:00
Xin Wang
eb1d7110ec
FE: Fix null assertion error when left is CollectionLiteral
...
#KT-49961 fixed
2022-05-18 08:57:16 +02:00
Anastasia.Shadrina
292c0c4383
[FE] KT-51234 Check subtyping between context receivers
2022-05-17 15:27:27 +00:00
Anastasia.Shadrina
d857142514
KT-51243 Fix parameterized contextual lambda
...
^KT-51243 Fixed
2022-05-17 15:27:26 +00:00
Roman Golyshev
254151d82c
[FIR IDE] Use proper FirSessions in FirSupertypesResolution
...
Symbols might be from other modules, so we need to use corresponding
`FirSession`s; otherwise it would be impossible to query symbols
from `firProvider`
^KTIJ-21714 Fixed
2022-05-12 21:22:22 +04:00
Victor Petukhov
11eb5ce39c
[FE] Check types in canHaveCommonSubtype for intersection emptiness with erasing nullability
...
It doesn't affect having common subtypes check but may lead to false positives
^KT-52364 Fixed
2022-05-12 15:11:27 +00:00
Ilya Kirillov
b5ad6f5db4
[analysis api] move analysis session classes to separate packages, use KtAnalysisApiInternals to mark internal API
2022-05-12 16:15:14 +02:00
Ilya Kirillov
eb9085c083
[analysis api] rename analyse -> analyze to match American word spelling
2022-05-12 16:15:13 +02:00
Dmitriy Novozhilov
2796d21ec6
[FIR] Create snapshot of tower data context for postponed callable referneces
...
This fixes an issue if type of some implicit receiver was changed because
of changed smartcast in outer scope
^KT-51228 Fixed
2022-05-12 12:15:31 +03:00
Victor Petukhov
9f31f074da
[FE 1.0] Take care callable reference candidates with recursive candidate return type
...
^KT-51844 Fixed
2022-05-09 19:23:43 +00:00
Victor Petukhov
ec6ec20728
[FE 1.0] Fix subtyping for captured integer literal types
...
^KT-50877 Fixed
2022-05-09 19:23:42 +00:00
Ilya Kirillov
7395f8e019
[low level api] consider property type parameters when matching FIR and PSI declarations
2022-05-09 16:09:02 +00:00
Ilya Kirillov
875da1ea1e
[low level api] consider return type when matching FIR and PSI declarations
2022-05-09 16:09:01 +00:00
Victor Petukhov
7675361380
[FE 1.0] Continue completion of calls inside that builder inference call postponed type variables of which has already been inferred
2022-05-09 12:38:39 +00:00
Jinseong Jeon
754a41eb13
LL: handle jrt in LLFirJavaFacadeForBinaries
2022-05-09 00:22:53 +02:00
Ilya Kirillov
82bfa3db05
[fir low level, refactoring] refactor LLFirSessionFactory
2022-05-05 10:43:13 +02:00
Ilya Kirillov
f5c95f8a12
[fir low level, refactoring] remove registration of unused service
2022-05-05 10:43:13 +02:00
Ilya Kirillov
4ff38c9697
[fir low level, refactoring] rename LLFirModuleResolveState -> LLFirResolveSession
2022-05-05 10:43:13 +02:00
Ilya Kirillov
7b70cf3ae0
[fir low level, refactoring] rename rootModule -> useSiteModule
2022-05-05 10:43:13 +02:00
Ilya Kirillov
4825de3ed8
[fir low level] extract library session caching to a separate class
2022-05-05 10:43:12 +02:00
Ilya Kirillov
7c202948cd
[fir low level, fir] extract empty FirPredicateBasedProvider to a separate class
2022-05-05 10:43:12 +02:00
Ilya Kirillov
71819a8cb9
[fir low level, refactoring] rename some classes to match the naming pattern
2022-05-05 10:43:12 +02:00
Mikhail Glukhikh
15d58aff92
K2: drop C/DFA warning which fixes can break compilation in K1 till 1.8
...
#KT-50965 Fixed
2022-05-01 16:40:04 +00:00
Mads Ager
17b5e46547
[FE1.0] Fix CFG for inline function calls in finally blocks.
...
The body of the InlinedLocalFunctionDeclarationInstruction was
not copied. That confuses the information on the exceptional edge
with the information on the normal edge.
^KT-52131 Fixed
2022-04-28 14:39:59 +03:00
Victor Petukhov
6c54b78574
[FE 1.0] Don't capture projections during compatibility check of supertypes to determine intersection type emptiness
2022-04-27 19:50:30 +00:00
Victor Petukhov
20a8e5d742
[FE] Determine intersection type emptiness by looking at supertypes properly: substitute their type arguments
2022-04-27 19:50:29 +00:00
Victor Petukhov
54f0794ce3
[FE] Substitute erased type parameters as covariant
2022-04-27 19:50:28 +00:00
Victor Petukhov
fb76d819f0
[FE] Erase type parameters of super types during intersection type emptiness check as well
2022-04-27 19:50:27 +00:00
Victor Petukhov
12a39d0330
[FE 1.0] Report errors due to inferred empty intersection on those candidates which were already previously discriminated by CompatibilityOfTypeVariableAsIntersectionTypePart
2022-04-27 19:50:26 +00:00
Victor Petukhov
47d6236a2d
[FIR] Support determining emptiness of an intersection type with type parameters' types
2022-04-27 19:50:23 +00:00
Victor Petukhov
b96708c3e2
[FE] Support reporting INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION for empty intersection types with type parameters
2022-04-27 19:50:21 +00:00
Victor Petukhov
c16ae81a48
[FIR] Report errors for upper bounded type variables by an empty intersection type
...
^KT-51221 Fixed
2022-04-27 19:50:21 +00:00
Jinseong Jeon
af21b67eb5
LL: cache reverse converted constant expression
2022-04-22 18:55:31 +02:00
Jinseong Jeon
7e8c893ce1
LL: showcase converted constants in raw FIR
2022-04-22 18:55:30 +02:00
Roman Golyshev
1d5cb8ab75
[FIR] Get FirSession from declaration in ReturnTypeCalculatorWithJump
...
If the session is from the other module, it might not know about
FirFiles which are relevant for transforming and resolving the
declaration
^KT-52136 Fixed
2022-04-21 19:23:20 +00:00
Mikhail Glukhikh
f65364b191
FIR: add test for #KT-49438 Obsolete
2022-04-20 22:31:54 +03:00
Ilya Kirillov
ee8de63497
[low level api] fix creating libraries session with non-jvm libraries
2022-04-19 19:42:11 +02:00
Ilya Kirillov
3525ddaf12
[analysis api fir] fix resolving of compiled type alias
...
^KT-50868 fixed
2022-04-19 12:57:28 +00:00
Ilya Kirillov
9a562a0293
[analysis api] optimize search for declarations in IDE
2022-04-19 12:37:49 +02:00
Ilya Kirillov
7420933bff
[low level api] remove unused code
2022-04-19 12:37:48 +02:00
Ilya Kirillov
9a18598606
[low level api] rework components structure, add ScopeSession caches
2022-04-19 12:37:47 +02:00
Ivan Kochurkin
3b8183a736
[FIR] Support of importing optional annotation classes (JS/Native), ^KT-51757 Fixed
2022-04-18 15:36:21 +00:00
Ivan Kochurkin
541fba1531
[FIR] Type argument instead of unexpected type parameter for TypeMismatch error
...
^KT-49035
^KT-51201 Fixed
2022-04-18 15:36:20 +00:00
Ivan Kochurkin
8c7fad9a5e
[FIR] Support of type arguments in annotations ^KT-48444 Fixed
2022-04-18 15:36:19 +00:00
Ivan Kochurkin
05bed8f751
[FIR] Hide local type for return type of single expression function ^KT-51418 Fixed
2022-04-18 15:36:18 +00:00
Mikhail Glukhikh
0ecba0ad0b
FIR: don't create incorrect constraints in CallableReferenceResolution
...
#KT-50994 Fixed
Related to KT-49477
2022-04-18 14:27:42 +00:00
Denis.Zharkov
9c7fea24d1
Fix exception when reporting WRONG_TYPE_PARAMETER_NULLABILITY_FOR_JAVA_OVERRIDE
...
^KT-51979 Fixed
2022-04-15 12:36:05 +00:00