Commit Graph

159 Commits

Author SHA1 Message Date
anastasiia.spaseeva b1dbacf45f [Spec tests] Fix test-info parser for relevant places 2020-04-01 16:30:24 +03:00
anastasiia.spaseeva 9f684bfd65 [Spec tests] Add tests for call-with-specified-type-parameters 2020-04-01 16:30:23 +03:00
anastasiia.spaseeva 0397470b85 [Spec tests] Update tests with spec version 0.1-313 2020-03-30 19:12:55 +03:00
Victor Petukhov a29385e758 [Spec tests] Small clean-up CheckerTestUtil and around it 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva 90d1cdf2e1 [Spec tests] Add tests for section call-with-trailing-lambda-expressions 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva 4736b3b348 [Spec tests] Add tests for call-with-named-parameters 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva bb1ee952ba [Spec tests] Add tests for call-without-an-explicit-receiver, receivers 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 35de6a3f6e [Spec tests] Add tests for overload-resolution, building-the-overload-candidate-set-ocs, operator-call:
-properties available through the invoke convention are non-eligible for operator calls
  -smart casts and overload-resolution
  -candidate sets
2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 4301744d2d [Spec tests] Add test for infix fun + KT-36786 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva c9bb994fb5 [Spec tests] Add tests to check overload resolution for implicitly imported infix functions 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 9711fda353 [Spec tests] Add tests for property-like callables prioritization 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 157e33d08b [Spec tests] Add tests for receivers 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 81b6e5a373 [Spec tests] Add box tests for callables-and-invoke-convention to check priority 2020-03-30 11:15:54 +03:00
Victor Petukhov f76faaf1b0 [Spec tests] Unify platform dependent part of fixed exception 2020-03-30 11:15:53 +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 ab3b63c92a [Spec tests] Apply changes in parse trees due to trailing comma introducing 2020-03-30 11:15:52 +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
Alexander Udalov 3ca0f8a569 Fix incorrect message for new nullability assertion exception in 1.4
#KT-36026 Fixed
2020-01-22 14:41:20 +01: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 9e3ecbd902 [Spec tests] Add codegen tests for indexing-expression (paragraph 3) 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 e4d12593be [Spec tests] Add tests for postfix-expressions, postfix-decrement-expression && postfix-increment 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