Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
TypeError: wrong argument type NilClass (must respond to :each)
This error occurred when I tested `typeprof` on `test-unit`. https://github.com/test-unit/test-unit/blob/24fb08fe31835b0d9ade80fb2f51554e55d1a74a/lib/test/unit/attribute.rb#L4 Although `superclass_type_args` may be nil, it was passed to `Array#zip` and raised a TypeError. https://github.com/ruby/typeprof/blob/c440ce91d8903c9e284f911b13ca49320f6a1fb7/lib/typeprof/core/env.rb#L115 I changed it to if superclass_type_args is nil, use an empty array instead.
- Loading branch information