Files
kotlin-fork/compiler/testData/diagnostics/tests
Denis.Zharkov 31ba1f1534 Add deprecation warning for false-negative TYPE_MISMATCH
See KT-49404 for details

In K1, within SubstitutingScope we approximate almost all the types
containing captured types are being approximated to either a lower or
an upper bound.

While mostly, it's being done correctly there are some problems with
approximations for flexible types

So, the parameter's type of A<in Any>::foo is approximated to Inv<in Any!>,
thus allowing to use Inv<*>, while it's obviously unsound.

NB: For the similar example, in B, there are regular TYPE_MISMATCH
because parameter for B<in Any>::foo is approximated to Nothing

Also, it's important to say that
- in K2 everything works because we don't use type approximation there
- approximation algorithm that works incorrectly is only being used in K1

^KT-54332 Fixed
2022-10-12 20:53:02 +00:00
..
2022-06-28 16:58:20 +02:00
2022-09-06 17:57:02 +00:00
2022-06-15 17:20:00 +00:00
2021-11-12 15:20:45 +03:00
2022-02-25 11:46:27 +00:00
2022-06-29 10:20:30 +02:00
2022-02-25 11:46:27 +00:00
2021-11-12 15:20:44 +03:00
2021-07-28 23:17:31 +03:00
2022-02-25 11:46:27 +00:00
2021-09-14 23:48:50 +03:00
2021-09-14 23:48:50 +03:00