Diff
Not logged in

Differences From Artifact [0eae6cc37f045c97]:

To Artifact [004818c087feff6a]:


388 388 ), 6); 389 389 assert_eq( d2.match( 390 390 when!(D1, (x, y){return x + cast(int)y;}), 391 391 otherwise!({return 999;}), 392 392 when!(D2, (x){return x.length;}) 393 393 ), 999); 394 394 } 395 + 396 +/// Will be used for dynamic overload resolution pattern 397 + 398 +template firstParam(T) 399 +{ 400 + alias ParameterTypeTuple!(T)[0] firstParam; 401 +}