mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
312 B
D
15 lines
312 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag13320.d(14): Error: operator `++` not supported for `f` of type `Foo`
|
|
fail_compilation/diag13320.d(9): perhaps implement `auto opUnary(string op : "++")() {}` or `auto opOpAssign(string op : "+")(int) {}`
|
|
---
|
|
*/
|
|
|
|
struct Foo {}
|
|
|
|
void main()
|
|
{
|
|
Foo f;
|
|
++f;
|
|
}
|