mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
18 lines
416 B
D
18 lines
416 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ctfe14731.d(16): Error: cannot implicitly convert expression `split("a b")` of type `string[]` to `string`
|
|
fail_compilation/ctfe14731.d(17): Error: cannot implicitly convert expression `split("a b")` of type `string[]` to `string`
|
|
---
|
|
*/
|
|
|
|
string[] split(string a)
|
|
{
|
|
return [a];
|
|
}
|
|
|
|
void main()
|
|
{
|
|
enum string list1 = "a b".split();
|
|
string list2 = "a b".split();
|
|
}
|