K1: Enhance deprecation messages for getFirst/getLast JDK 21 members

^KT-60659 Fixed
^KT-60769 Fixed
This commit is contained in:
Denis.Zharkov
2023-08-02 14:39:45 +02:00
committed by Space Team
parent 0694ee50a3
commit bd46bb02c1
6 changed files with 107 additions and 1 deletions
@@ -0,0 +1,23 @@
/newListMethods.fir.kt:(611,619): error: Unresolved reference: getFirst
/newListMethods.fir.kt:(628,633): error: Function invocation 'first()' expected
/newListMethods.fir.kt:(719,726): error: Unresolved reference: getLast
/newListMethods.fir.kt:(735,739): error: Function invocation 'last()' expected
/newListMethods.fir.kt:(853,861): error: Unresolved reference: getFirst
/newListMethods.fir.kt:(870,875): error: Function invocation 'first()' expected
/newListMethods.fir.kt:(896,903): error: Unresolved reference: getLast
/newListMethods.fir.kt:(912,916): error: Function invocation 'last()' expected
/newListMethods.fir.kt:(1030,1038): error: Unresolved reference: getFirst
/newListMethods.fir.kt:(1047,1052): error: Function invocation 'first()' expected
/newListMethods.fir.kt:(1073,1080): error: Unresolved reference: getLast
/newListMethods.fir.kt:(1089,1093): error: Function invocation 'last()' expected