You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleCore(T)
@a : BoolendclassBase(T)
includeCore(Int32)
definitialize@a=trueendendBase(String).new # OK # This code failsclassFoo < Base(String)
end# Error in test.cr:2: instance variable '@a' of Base(String) was not initialized# in all of the 'initialize' methods, rendering it nilable
I expect instance variable
@a
is initialized, but gotnot initialized
error in following code.Real code
https://github.com/maiha/rocksdb.cr/blob/iteration/src/rocksdb/iterator.cr#L73
Minimum reproducible code
versions
Got same error on master branch:
Crystal 0.20.0+35 [eff31e5] (2016-12-04)
Best wishes,
maiha
The text was updated successfully, but these errors were encountered: