From 33ffd3dfcabdf5cea4464eecd458a5c765905d62 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 18 Feb 2014 19:31:14 +0400 Subject: [PATCH] Add explicit Unit type to declarations of built-ins --- core/builtins/native/jet/Collections.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/builtins/native/jet/Collections.kt b/core/builtins/native/jet/Collections.kt index c8cdd0ee1c4..d8c85d578a8 100644 --- a/core/builtins/native/jet/Collections.kt +++ b/core/builtins/native/jet/Collections.kt @@ -31,7 +31,7 @@ public trait MutableCollection : Collection, MutableIterable { public fun addAll(c : Collection) : Boolean public fun removeAll(c : Collection) : Boolean public fun retainAll(c : Collection) : Boolean - public fun clear() + public fun clear() : Unit } public trait List : Collection { @@ -69,11 +69,11 @@ public trait MutableList : List, MutableCollection { public fun addAll(index : Int, c : Collection) : Boolean override fun removeAll(c : Collection) : Boolean override fun retainAll(c : Collection) : Boolean - override fun clear() + override fun clear() : Unit // Positional Access Operations public fun set(index : Int, element : E) : E - public fun add(index : Int, element : E) + public fun add(index : Int, element : E) : Unit public fun remove(index : Int) : E // List Iterators @@ -107,7 +107,7 @@ public trait MutableSet : Set, MutableCollection { override fun addAll(c : Collection) : Boolean override fun removeAll(c : Collection) : Boolean override fun retainAll(c : Collection) : Boolean - override fun clear() + override fun clear() : Unit } public trait Map { @@ -135,8 +135,8 @@ public trait MutableMap : Map { public fun remove(key : Any?) : V? // Bulk Modification Operations - public fun putAll(m : Map) - public fun clear() + public fun putAll(m : Map) : Unit + public fun clear() : Unit // Views override fun keySet() : MutableSet @@ -146,4 +146,4 @@ public trait MutableMap : Map { public trait MutableEntry : Map.Entry, Hashable { public fun setValue(value : V) : V } -} \ No newline at end of file +}