Template functions (instantiated implicitly) work!

This commit is contained in:
Nathan Braswell
2018-10-09 23:00:57 -04:00
parent 39ecf24e69
commit 379d9f612e
6 changed files with 91 additions and 47 deletions

View File

@@ -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]
}