Fix issue with Vector
This commit is contained in:
parent
707812559d
commit
d799f8b844
|
@ -0,0 +1 @@
|
||||||
|
crystal 1.2.0
|
|
@ -12,7 +12,7 @@ module Apatite
|
||||||
|
|
||||||
protected getter elements : Array(T)
|
protected getter elements : Array(T)
|
||||||
|
|
||||||
delegate :each, to: @elements
|
delegate :each, :size, to: @elements
|
||||||
|
|
||||||
private def initialize(array : Indexable(T))
|
private def initialize(array : Indexable(T))
|
||||||
{% raise "Vectors must be one type only" if T.union? %}
|
{% raise "Vectors must be one type only" if T.union? %}
|
||||||
|
|
Loading…
Reference in New Issue