mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

Fix Issue 24206 - Can't alias a function type that returns a type with a TypeSuffix Add isTypeSuffix() function. This also means a function type with a TypeCtor is now deprecated, just like a function pointer type with a TypeCtor. This gives a better error message and simplifies the code.
10 lines
175 B
D
10 lines
175 B
D
// https://issues.dlang.org/show_bug.cgi?id=22048
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test22048.d(10): Error: unexpected identifier `p` after `int`
|
|
---
|
|
*/
|
|
|
|
alias a = int p;
|