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

* Fix #20763 - Inconsistent handling of type + value in typeof expressions * Add supplemental error --------- Co-authored-by: Dennis Korpel <dennis@sarc.nl>
15 lines
273 B
D
15 lines
273 B
D
// REQUIRED_ARGS: -o-
|
|
/*
|
|
TEST_OUTPUT:
|
|
----
|
|
fail_compilation/ice9545.d(14): Error: type `int` has no value
|
|
fail_compilation/ice9545.d(14): perhaps use `int.init`
|
|
----
|
|
*/
|
|
|
|
struct S { template T(X) { alias T = X; } }
|
|
|
|
void main()
|
|
{
|
|
auto x1 = S.init.T!int; // ICE
|
|
}
|