Use forall

This commit is contained in:
Ary Borenszweig 2016-09-19 19:20:18 -03:00
parent 751be7aa6a
commit ae6a68f00e

View file

@ -75,7 +75,7 @@ module DB
end end
# Reads the next column value as a **type** # Reads the next column value as a **type**
def read(type : T.class) : T def read(type : T.class) : T forall T
read.as(T) read.as(T)
end end
@ -84,7 +84,7 @@ module DB
internal_read(*types) internal_read(*types)
end end
private def internal_read(*types : *T) private def internal_read(*types : *T) forall T
{% begin %} {% begin %}
Tuple.new( Tuple.new(
{% for type in T %} {% for type in T %}