mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 21:51:03 +03:00

* Fix Issue 13063 - `enum` is allowed as storage class for functions * Remove enum from unrelated test * Add changelog
13 lines
456 B
D
13 lines
456 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/enum_function.d(10): Error: function cannot have enum storage class
|
|
fail_compilation/enum_function.d(11): Error: function cannot have enum storage class
|
|
fail_compilation/enum_function.d(12): Error: function cannot have enum storage class
|
|
fail_compilation/enum_function.d(13): Error: function cannot have enum storage class
|
|
---
|
|
*/
|
|
enum void f1() { return; }
|
|
enum f2() { return 5; }
|
|
enum f3() => 5;
|
|
enum int f4()() => 5;
|