Kirill Rakhman
d91000e39c
[FIR] Report INAPPLICABLE_CANDIDATE or more specific diagnostic for callable references
...
... instead of just UNRESOLVED_REFERENCE when something went wrong
during resolution.
#KT-59401 related
2023-11-08 15:45:48 +00:00
Denis.Zharkov
034671ad78
K2: Update substituted member candidate if it contains type variables
...
See the comment at updateSubstitutedMemberIfReceiverContainsTypeVariable
It became necessary after delegate inference is rewritten, since before
that happened, stub types were being left there and FIR2IR handled
them accidentally properly because stub types are equal to anything.
But that wasn't really correct even there because stub types are not
intended to leak out of the FIR
^KT-61060
2023-09-08 07:11:48 +00:00
Mikhail Glukhikh
9846ec23df
Raw FIR: generate 'return setValue' instead of just 'setValue'
...
#KT-61045 Fixed
2023-08-22 11:20:19 +00:00
Nikolay Lunyak
bca44e5d8c
[FIR] Prepend type variables with '+' rather than '_'
...
'++' is easier to notice than '__'.
'++++++' is easier to count than '######'.
2023-08-04 11:20:39 +00:00
Kirill Rakhman
2f3293f99e
[FIR] Skip redundant INAPPLICABLE_CANDIDATE on call with unresolved callable reference argument
...
A new resolution diagnostic UnsuccessfulCallableReferenceAtom is
introduced that is used in EagerResolveOfCallableReferences.
No diagnostic is reported on unresolved calls with this diagnostic
because
#KT-59856
2023-07-20 07:29:18 +00:00
Dmitrii Gridin
6170d83301
[FIR] update reversed testData
...
^KT-56543
2023-04-19 20:12:41 +00:00
Dmitrii Gridin
1c5aa6c45b
[FIR] add reversed testData to update it in the next commit
...
^KT-56543
2023-04-19 20:12:41 +00:00
Dmitrii Gridin
9a4a3d1f49
[LL FIR] introduce test with reversed resolve order
...
^KT-56543
Merge-request: KT-MR-9299
Merged-by: Dmitrii Gridin <dmitry.gridin@jetbrains.com >
2023-03-22 17:34:07 +00:00
Dmitriy Novozhilov
e9204521a9
[FIR] Properly create type ref for error type in various places
2023-02-06 08:09:56 +00:00
Dmitriy Novozhilov
b174bb8844
[FIR] Update testdata after introducing FirResolvedErrorReference
2022-12-15 12:12:19 +00:00
Dmitriy Novozhilov
22c21ca4df
[FIR] Replace uninferred type variables and stub types during delegate inference
2022-11-03 08:30:07 +00:00
Victor Petukhov
42e71f8c53
Remove explicit enabling the new type inference from test data
2022-07-22 16:03:52 +00:00
Victor Petukhov
efa267bf86
[FE] Fix tests after rebase
2022-05-27 13:56:34 +00: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
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
Vladimir Dolzhenko
918a91dbdf
Escape special names with backticks in test data
...
#KT-51248
2022-02-10 21:20:47 +00:00
Denis.Zharkov
2ecba6ac39
Remove WITH_NEW_INFERENCE directive from all tests
...
This directive anyway does not make test run twice with OI, and with NI
It only once run the test with specific settings (// LANGUAGE)
and ignores irrelevant (OI or NI tags)
2021-05-25 13:28:26 +03:00
Mikhail Glukhikh
8884cbe415
Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
2020-03-05 09:39:40 +03:00
Dmitriy Novozhilov
70ee51d88c
[FIR] Add anonymous objects to CFG
2020-03-02 09:49:29 +03:00
Dmitriy Novozhilov
e83941a98e
[NI] Don't resolve delegates twice
...
#KT-31219 Fixed
#KT-31679 Fixed
#KT-32249 Fixed
2019-12-26 10:54:06 +03:00