Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts
Dmitry Savvinov 952f67dafc Fix bogus smartcast on enum entry members
Previously, enum entries were treated by the data-flow subsystem similar
to other class/singletons. As a consequence, calls like
'Enum.ENTRY.property' had IdentifierInfo of 'property'.

However, specially for enum entries, descriptor of 'property' is one and
the same for all entries. It means that from the data-flow point of
view, 'Enum.ONE.property' and 'Enum.TWO.property' are *one and the same
data-flow values*.

It could obviously lead to some bogus smartcasts, so this commit
introduces separate IdentifierInfo.EnumEntry and uses it to build proper
qualified values.

^KT-20772 Fixed
2018-08-08 12:48:56 +03:00
..
2015-10-07 15:50:23 +03:00
2015-10-07 15:50:23 +03:00
2015-09-25 19:20:20 +03:00
2015-09-25 19:20:20 +03:00
2015-11-09 16:36:34 +03:00
2015-11-09 16:36:34 +03:00
2017-11-29 02:54:26 +03:00
2015-10-07 15:50:23 +03:00
2016-09-15 16:45:48 +03:00
2015-10-07 15:50:23 +03:00
2016-09-15 16:45:48 +03:00
2017-05-15 11:24:35 +03:00
2015-10-19 20:45:02 +03:00
2015-10-19 20:45:02 +03:00
2015-10-19 20:45:02 +03:00