mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
18 lines
429 B
D
18 lines
429 B
D
// https://issues.dlang.org/show_bug.cgi?id=19948
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail19948.d(15): Error: function `fail19948.func(const(X))` is not callable using argument types `(X)`
|
|
fail_compilation/fail19948.d(15): cannot pass argument `X()` of type `fail19948.main.X` to parameter `const(fail19948.X)`
|
|
---
|
|
*/
|
|
// DISABLED: win32
|
|
struct X {}
|
|
void main()
|
|
{
|
|
struct X {}
|
|
func(X());
|
|
}
|
|
|
|
void func(const(X)) {}
|