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
fun createNStreams(n,s) {
fun f (n) iterate x in s { if moduloI(x,n) == 0 then emit x };
fun g (n) if n == 1 then [] else f(n):::g(n-1);
g(n)
}
The inferred type of this function is: createNStreams :: (#a, Stream Int) -> List 'b;
This bug can be sidestepped by providing a correct type signature. The compiler accepts the correct type signature provided. For this particular function: createNStreams :: (Int, Stream Int) -> List (Stream Int);
The text was updated successfully, but these errors were encountered:
Reproducer:
The inferred type of this function is:
createNStreams :: (#a, Stream Int) -> List 'b;
This bug can be sidestepped by providing a correct type signature. The compiler accepts the correct type signature provided. For this particular function:
createNStreams :: (Int, Stream Int) -> List (Stream Int);
The text was updated successfully, but these errors were encountered: