A function type doesn't inherit Reference anymore (it's a Value). Fixed its...
A function type doesn't inherit Reference anymore (it's a Value). Fixed its to_s and also added a closure? method to check if it's a closure or not (might be useful)
Showing
- spec/compiler/codegen/fun_spec.cr 13 additions, 0 deletionsspec/compiler/codegen/fun_spec.cr
- spec/compiler/type_inference/fun_spec.cr 0 additions, 4 deletionsspec/compiler/type_inference/fun_spec.cr
- src/compiler/crystal/codegen/primtiives.cr 8 additions, 0 deletionssrc/compiler/crystal/codegen/primtiives.cr
- src/compiler/crystal/type_inference.cr 1 addition, 1 deletionsrc/compiler/crystal/type_inference.cr
- src/compiler/crystal/types.cr 3 additions, 1 deletionsrc/compiler/crystal/types.cr
Please register or sign in to comment