mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
11 lines
414 B
Plaintext
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
|
|
}
|