slang icon indicating copy to clipboard operation
slang copied to clipboard

Missed argument inference opportunity

Open expipiplus1 opened this issue 1 year ago • 1 comments

struct S<let N : int>{}

func foo<let N : int = I, let I : int>(s : S<I>) -> int;

let s : S<10> = {};

let i = foo(s);

We should be able to infer N here as equal to I which is equal to 10.

expipiplus1 avatar Sep 26 '24 15:09 expipiplus1

Address during https://github.com/shader-slang/slang/issues/5240

expipiplus1 avatar Oct 10 '24 00:10 expipiplus1