mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix case trying to initialize a char[*]* from a String.
This commit is contained in:
6
test/test_suite/cast/cast_string_to_infered_array.c3
Normal file
6
test/test_suite/cast/cast_string_to_infered_array.c3
Normal file
@@ -0,0 +1,6 @@
|
||||
import std;
|
||||
fn void main()
|
||||
{
|
||||
char[*]* x = "abc"; // #error: You cannot cast 'String' to 'char[*]*'
|
||||
io::printn($typeof(x).nameof);
|
||||
}
|
||||
Reference in New Issue
Block a user