I think it’s basically hitting this rule: Type inference - Crystal, hence the error when you try and give it a String. The Nil part comes from it being assigned in a method that isn’t #initialize.
2 Likes