mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
12 lines
343 B
D
12 lines
343 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test16443.d(10): Error: incompatible types for `(null) + (null)`: both operands are of type `typeof(null)`
|
|
fail_compilation/test16443.d(11): Error: incompatible types for `(null) - (null)`: both operands are of type `typeof(null)`
|
|
---
|
|
*/
|
|
|
|
void foo()
|
|
{
|
|
auto a = null + null;
|
|
auto b = null - null;
|
|
}
|