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
Dyn.foo(1, 2) // prints "foo(1, 2)"
Dyn.foo(3).bar(4, 5) // prints "foo(3)", then "bar(4, 5)"
Dyn(6).bar(7) // prints "apply(6)", then "bar(7)"
Dyn.foo(8)(9) // prints "foo(8)", then "apply(9)"
This somewhat analogous macro implementation works in all but the last case:
DynMacro.foo(1, 2) // prints "foo(1, 2)"
DynMacro.foo(3).bar(4, 5) // prints "bar(4, 5)", then "foo(3)"
DynMacro(6).bar(7) // prints "bar(7)", then "apply(6)"
DynMacro.foo(8)(9) // Fails!
The last case results in an unhandled AssertionError "assertion failed: DynMacro.foo(8)(9)" somewhere in SuperAccessors, but the actual error probably happens much earlier.
Consider this implementation of applyDynamic:
This works as expected:
This somewhat analogous macro implementation works in all but the last case:
The last case results in an unhandled AssertionError
"assertion failed: DynMacro.foo(8)(9)"
somewhere inSuperAccessors
, but the actual error probably happens much earlier.This may or may not be related to #7059.
The text was updated successfully, but these errors were encountered: