Fix case trying to initialize a char[*]* from a String.

This commit is contained in:
Christoffer Lerno
2024-12-15 20:42:42 +01:00
parent 7d153a162a
commit 4ae3d0150f
3 changed files with 21 additions and 2 deletions

View 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);
}