Files
c3c/test/test_suite/generic/generic_error_out.c3

11 lines
414 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 'std::collections::map::HashMap{char[], char[]}*' to 'std::collections::map::HashMap{char[], String}*' is not permitted, but you may do an explicit cast by placing '(std::collections::map::HashMap{char[], String}*)' before the expression
}