anastasiia.spaseeva
9711fda353
[Spec tests] Add tests for property-like callables prioritization
2020-03-30 11:15:54 +03:00
anastasiia.spaseeva
3b35374186
[Spec tests] Add diagnostics tests for building-the-overload-candidate-set-ocs, call-with-an-explicit-receiver
2020-03-30 11:15:54 +03:00
anastasiia.spaseeva
5986ffae1e
[Spec tests] Add tests for expressions and statements
2020-03-30 11:15:53 +03:00
anastasiia.spaseeva
509036b08b
[Spec tests] Update spec tests metadata
2020-03-30 11:15:53 +03:00
anastasiia.spaseeva
8b307c0a2a
[Spec tests] KT-35494 test update
2020-03-30 11:15:53 +03:00
anastasiia.spaseeva
1caafdc9d4
[Spec tests] Updating tests for kotlin 1.4.0
2020-03-30 11:15:53 +03:00
victor.petukhov
f62901d7d9
[Spec tests] Actualize spec tests
2020-03-30 11:15:52 +03:00
victor.petukhov
2dbce2cc41
[Spec tests] Link diagnostic tests for when expression with Kotlin specification
2020-03-30 11:15:52 +03:00
Mikhail Zarechenskiy
191fb02bf6
[NI] Consider intersection type with number type as Nothing
...
Currently, only for "in": In<in Int & A> == In<in Nothing> == In<*>
#KT-37302 Fixed
2020-03-23 16:39:21 +03:00
Mikhail Zarechenskiy
83824d0ba6
[NI] Don't stop on a candidate with unstable smartcast error
...
#KT-36847 Fixed
2020-02-20 12:34:34 +03:00
Victor Petukhov
51edf2b351
NI: introduce warning about implicitly inferred Nothing with existing non-Nothing expected type
...
^KT-35406 Fixed
2020-02-17 19:43:05 +03:00
Pavel Kirpichenkov
b161839092
[NI] Report unsafe implicit invoke accordingly to OI
...
This reverts commit df046683cc .
KT-30695
2020-02-14 18:06:34 +03:00
Ilya Chernikov
6356807997
Reapply "Only create descriptors for candidates with lambda args"
...
#KT-36247 fixed
A lot of testdata changed because significanly less (error) descriptors
are created for unresolved types, so diagnostics became different.
2020-02-14 11:41:30 +01:00
Pavel Kirpichenkov
e40ba73950
[NI] Add resolution applicability for resolved candidates with error
...
New resolution applicability is needed in cases when error is found,
but candidate still should be selected. Currently there are two cases,
when this behaviour is required:
- unstable smartcast (choose candidate with non-nullable parameter)
- unknown lambda parameter type (against non-functional expected type)
KT-36264
2020-02-13 18:02:37 +03:00
Pavel Kirpichenkov
df046683cc
Revert "[NI] Report unsafe implicit invoke accordingly to OI"
...
This reverts commit b045adf83a .
2020-02-13 16:06:40 +03:00
Mikhail Zarechenskiy
ee48580e06
[NI] Update test data
2020-02-13 15:01:39 +03:00
Pavel Kirpichenkov
b045adf83a
[NI] Report unsafe implicit invoke accordingly to OI
...
There are several issues with unsafe desugaring for convention calls.
Proper fix is not implemented here (see design proposal KT-30872).
This commit only applies the old logic in the new inference.
^KT-30695 Fixed
2020-02-13 14:49:43 +03:00
Pavel Kirpichenkov
572dee6835
Revert "Only create descriptors for candidates with lambda args"
...
This reverts commits:
349d07ad43
2249c223fe
Revert due to differences in test data with NI enabled
^KT-36247 Open
2020-02-12 20:52:30 +03:00
Mikhail Zarechenskiy
759127df9a
Add NI diagnostics for spec tests
2020-02-12 10:37:35 +03:00
Ilya Chernikov
2249c223fe
Only create descriptors for candidates with lambda args
...
#KT-36247 fixed
2020-02-10 14:21:02 +01:00
Pavel Kirpichenkov
06550a6d31
[NI] Actualize spec tests, affected by KT-35668
...
Update test data, remove obsolete 'UNEXPECTED BEHAVIOUR'
2020-01-23 19:12:02 +03:00
Dmitriy Novozhilov
76b3964e96
Update testdata according to change compiler version to 1.4
2020-01-17 10:33:50 +03:00
Pavel Kirpichenkov
4d11fac365
[NI] Add restored smart casts to spec tests
...
KT-35668 Fixed
2020-01-15 14:39:40 +03:00
Denis Zharkov
d6b01f1007
NI: In subtyping do not intersect arguments for non-covariant types
...
It partially reverts 7898922066
because it's not obvious that it's a safe operation
for invariant/contravariant types.
Also, there's a necessary fix in prepareReceiverRegardingCaptureTypes
to make types order stable
Otherwise test bareTypesWithStarProjections becomes flaky.
Also, the changes in bareTypesWithStarProjections.kt are also expected
because the type of the expression `coneSymbol` after the second "if" is
FirVariableSymbol<*> & FirPropertySymbol & AbstractFirBasedSymbol<*>
thus we fix D in the call `coneSymbol.phasedFir()` to FirVariableSymbol<*>
because it's the first type in the list
(see the next line after the last changed in AbstractTypeChecker)
2020-01-14 17:35:24 +03:00
anastasiia.spaseeva
3253907317
[Spec tests] Hotfix for not-null-assertion-expression test
2020-01-10 13:12:01 +03:00
anastasiia.spaseeva
94c008872e
[Spec tests] Fix tests
2020-01-09 17:16:13 +03:00
anastasiia.spaseeva
e0743f2268
[Spec tests] Add fixed tests for expressions section, fix linkage for reference-equality-expressions section
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
0a1b8a928c
[Spec tests] Add tests for not-null-assertion-expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
7980db8613
[Spec tests] Add tests for prefix-expressions, logical-not--expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
e5a9a58d65
[Spec tests] Add tests for prefix-expressions, unary-minus-expression and unary-minus-expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
a8af3dc3c9
[Spec tests] Add tests for prefix-decrement-expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
01a4562076
[Spec tests] Add tests for additive-expression and Multiplicative expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
72358aa52a
[Spec tests] Add tests for range-expression
2020-01-09 17:16:12 +03:00
anastasiia.spaseeva
84cf4c5049
[Spec tests] Add tests for elvis-expression
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
479fa0e7b8
[Spec tests] Add tests for containment-checking-expression
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
4a94ffa5dd
[Spec tests] Add tests for type-checking-expression
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
2a1e084f03
[Spec tests] Add tests for comparison-expression
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
5e42a20575
[Spec tests] Add tests for value-equality-expressions (paragraph 2-3)
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
15b561195f
[Spec tests] Add tests for logical-conjunction-expression
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
6da8ccb9eb
[Spec tests] Add tests for logical-disjunction-expression (paragraph 2)
2020-01-09 17:16:11 +03:00
anastasiia.spaseeva
d4a83d535c
[Spec tests] Add tests for KT_35565 (local-property-declaration)
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
1ea5eb6850
[Spec tests] Add test for return expression
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
dcfcc9c7b6
[Spec tests] Add tests for when-expression (p-3, 4)
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
bd979a12de
[Spec tests] Review fix tests for try-expression and if-expression
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
e865327386
[Spec tests] Add tests for try-expression (paragraphs 1, 2, 5-9)
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
3aa3f0c50c
[Spec tests] Add tests for character-literals
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
8187405dbd
[Spec tests] fix test parser exceptions handler
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
fdef51e8b7
[Spec tests] Add tests for boolean-literals (p-1 sentence 2)
2020-01-09 17:16:10 +03:00
anastasiia.spaseeva
744cc54dff
[Spec tests] Add tests for if-expression
2020-01-09 17:16:09 +03:00
anastasiia.spaseeva
a41c4c84a6
[Spec-tests] Add tests for prefix increment expression
2020-01-09 17:16:09 +03:00