mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
450 B
D
20 lines
450 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag11078.d(19): Error: none of the overloads of `value` are callable using argument types `(double)`
|
|
fail_compilation/diag11078.d(12): Candidates are: `diag11078.S1.value()`
|
|
fail_compilation/diag11078.d(13): `diag11078.S1.value(int n)`
|
|
---
|
|
*/
|
|
|
|
struct S1
|
|
{
|
|
@property int value() { return 1; }
|
|
@property void value(int n) { }
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S1 s1;
|
|
s1.value = 1.0;
|
|
}
|