Files
c3c/test/test_suite/strings/slice_regression_2016.c3
2025-04-25 15:14:00 +02:00

24 lines
336 B
Plaintext

import std;
fn void main()
{
String str1;
String str2;
str1[..] = str2[..];
test2();
}
fn void test1()
{
String str1;
String str2;
str1[..] = str2; // #error: You cannot cast 'String' to 'char'
str1[..] = str2[..];
}
typedef String16 = inline Char16[];
fn void test2()
{
Char16[] str1;
String16 str2;
str1[..] = str2[..];
}