Fix issue with Vector

This commit is contained in:
Chris Watson 2021-10-18 13:33:14 -06:00
parent 707812559d
commit d799f8b844
2 changed files with 2 additions and 1 deletions

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
crystal 1.2.0

View File

@ -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? %}