Ilya Gorbunov
696701d377
Drop deprecated MutableMap property delegation operator
2020-06-22 12:29:25 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Ilya Gorbunov
1a8b258d86
Raise deprecation level for map delegation accessor according to #KT-18789
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
ecf0d7ec0d
Reformat stdlib tests and samples
...
#KT-5558
2018-04-27 05:28:57 +03:00
Ilya Gorbunov
e21c235bbb
Add or update copyrights in the standard library sources
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
0b9830248d
Restore original accessor signature as deprecated
...
The deprecated function is not operator because it covers cases where it was used in explicit form.
#KT-18789
2017-12-07 20:26:53 +03:00
Ilya Gorbunov
7efaa7cabc
Allow delegating val properties to out-projected MutableMap
...
Change generic signature of MutableMap.getValue, use 'out @Exact V' and `V1: V` types instead of single `in V`.
Fix affected IR generation tests.
#KT-18789 Fixed
2017-12-07 20:26:53 +03:00
Ilya Gorbunov
20b122c1dd
Use kotlin.test.Test instead of org.junit.Test in common stdlib tests
...
(and in jvm-only and js-only tests also)
2017-10-15 17:40:53 +03:00
Igor Chevdar
fd380f7545
Split up test on map access onto two tests: stdlib & compiler box test
2017-07-12 15:12:33 +03:00
Igor Chevdar
d7e4350d42
Ignored/fixed some tests for Kotlin/Native
2017-06-28 12:54:32 +03:00
Ilya Gorbunov
6a70761783
Minor: normalize '@Test' annotation casing in all tests.
2016-11-21 18:20:33 +03:00
Ilya Gorbunov
50cd620f92
Remove java.util.* imports from common code.
2016-11-21 18:20:33 +03:00
Ilya Gorbunov
4b533b297e
reified assertFailsWith available in kotlin-test for JS
...
#KT-11346
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
93c73500d7
Do not allow to delegate readonly property to a map with incompatible value type.
...
Infer type of delegated readonly property from the map value type.
2015-10-14 18:22:30 +03:00
Ilya Gorbunov
404b228954
StdLib cleanup: replace fails with assertFails
2015-10-07 22:36:06 +03:00
Denis Zharkov
5cecaa6f87
Get rid of deprecated annotations and modifiers in stdlib (besides JS)
2015-09-18 10:14:28 +03:00
Ilya Gorbunov
9caf5baf34
Refactor delegation unit tests.
2015-06-24 21:39:41 +03:00
Ilya Gorbunov
d04e94c826
Use NoSuchElementException instead of KeyMissingException. Deprecate KeyMissingException.
2015-06-24 21:39:40 +03:00
Ilya Gorbunov
a6b7857d57
Drop complicated MapAccessors. Deprecate simple cases of Delegates.mapVar and Delegates.mapVal in favor of direct delegation without wrappers.
2015-06-24 21:39:37 +03:00
Ilya Gorbunov
5306e88425
Provide the way to specify implicit default for a readonly or mutable map.
...
Refactor: rename default key and value providers.
2015-06-24 21:39:33 +03:00
Ilya Gorbunov
d137a83471
Simple extensions to delegate readonly property to Map and read-write property to MutableMap without delegate wrappers.
...
Delegation to map with custom key selector by map accessors.
2015-06-24 21:39:31 +03:00