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
modulefoo(<SIZE>);
structChunk {
char[SIZE] data;
}
structChunk_Array {
Chunk*first;
Chunk*last;
}
modulebar;
importfoo;
constSIZE=16;
defMy_Chunk=Chunk(<SIZE>);
fnvoidtester() {
Chunk_Array(<SIZE>) array;
My_Chunk*chunk=array.first;
// ^^^^^^^^^^^// Error: Implicitly casting 'Chunk(<16>)*' to 'My_Chunk*' (Chunk(<16>)*) is not permitted, but you may do an explicit cast by placing '(My_Chunk*)' before the expression.
}
This seems to occur when at least one of the generic parameters is a constant.
The text was updated successfully, but these errors were encountered:
This seems to occur when at least one of the generic parameters is a constant.
The text was updated successfully, but these errors were encountered: