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
When the trait Snk is defined with a method that does not take a generic parameter then calling Instance::resolve returns a Virtual instance.
traitSnk{fnsink(&self,t:usize){actual_sink(t)}}
However if the argument is generic, instance resolution fails.
traitSnk{fnsink<T>(&self,t:T){actual_sink(t)}}
The text was updated successfully, but these errors were encountered:
JustusAdam
changed the title
Resolving virtual/default methods with generic arguments does not work.
Resolving virtual methods with generic arguments does not work.
May 24, 2024
Setup:
When the trait
Snk
is defined with a method that does not take a generic parameter then callingInstance::resolve
returns aVirtual
instance.However if the argument is generic, instance resolution fails.
The text was updated successfully, but these errors were encountered: