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
Error: instance variable '@action' of Foo(String, Int32, Bool) must be Proc(*A, String), not Proc(Int32, Bool, String)
The text was updated successfully, but these errors were encountered:
asterite
changed the title
Can't use splat generics in Proc type declaration
Can't use splat generics in Proc type declaration for instance variable
Nov 26, 2019
@asterite Do you have any pointers on where to look if I wanted to take a shot at this? My current guess is that the splat arguments need to be "expanded" before seeing if they match or not?
Showing last frame. Use --error-trace for full trace.
error in line 10
Error: no overload matches 'Foo(String, Int32)#execute' with type Int32
Overloads are:
- Foo(Args)#execute(value : Union(*Args))
See https://forum.crystal-lang.org/t/splat-generics-with-proc/1410
Error:
The text was updated successfully, but these errors were encountered: