Files
c3c/test/test_suite/generic/generic_error_out.c3
2025-12-29 17:01:03 +01:00

11 lines
345 B
Plaintext

module test;
import std::collections::map;
fn void foo(HashMap{char[], String}* f) { }
fn void main()
{
HashMap{char[], char[]} x;
foo(&x); // #error: Implicitly casting 'HashMap{char[], char[]}*' to 'HashMap{char[], String}*' is not permitted, but you may do an explicit cast by placing '(HashMap{char[], String}*)' before the expression
}