Add more tests for collections implemented by delegation

This commit is contained in:
Dmitry Petrov
2020-09-29 21:26:47 +03:00
parent 3c380faeb5
commit f79afd67f4
20 changed files with 2488 additions and 46 deletions
@@ -1,4 +1,19 @@
class SimplePlatform
class DGenericIterator<T>(d: Iterator<T>) : Iterator<T> by d
open class TargetPlatform(val componentPlatforms: Set<SimplePlatform>) :
Collection<SimplePlatform> by componentPlatforms
class DGenericListIterator<T>(d: ListIterator<T>) : ListIterator<T> by d
class DGenericIterable<T>(d: Iterable<T>) : Iterable<T> by d
class DGenericCollection<T>(d: Collection<T>) : Collection<T> by d
class DGenericSet<T>(d: Set<T>) : Set<T> by d
class DGenericList<T>(d: List<T>) : List<T> by d
class DGenericMap<K, V>(d: Map<K, V>) : Map<K, V> by d
class DGenericMapEntry<K, V>(d: Map.Entry<K, V>) : Map.Entry<K, V> by d
class DGenericCollectionBySet<T>(d: Set<T>) : Collection<T> by d
class DGenericCollectionByList<T>(d: List<T>) : Collection<T> by d