mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
14 lines
404 B
D
14 lines
404 B
D
// https://issues.dlang.org/show_bug.cgi?id=21206
|
|
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail21206.d(10): Error: function `toString` cannot return type `string` because its linkage is `extern(C++)`
|
|
fail_compilation/fail21206.d(10): slices are specific to D and do not have a counterpart representation in C++
|
|
---
|
|
*/
|
|
extern(C++) struct Obj
|
|
{
|
|
string toString()
|
|
{
|
|
return "ret";
|
|
}
|
|
}
|