Template functions (instantiated implicitly) work!
This commit is contained in:
@@ -57,7 +57,7 @@ obj set<T> (Object, Serializable) {
|
||||
return data.size
|
||||
}
|
||||
fun single(): T {
|
||||
if (size() != 1)k
|
||||
if (size() != 1)
|
||||
util::error("trying to single with size != 1")
|
||||
return data[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user