dmd/compiler/test/fail_compilation/test22048.d
Nick Treleaven 57e36ee22d
Fix aliasing function type returning a Type with TypeSuffixes (#15805)
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.
2023-11-14 07:08:44 +08:00

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;