mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
18 lines
333 B
D
18 lines
333 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11518.d(17): Error: class `ice11518.B` matches more than one template declaration:
|
|
fail_compilation/ice11518.d(12): `B(T : A!T)`
|
|
and:
|
|
fail_compilation/ice11518.d(13): `B(T : A!T)`
|
|
---
|
|
*/
|
|
|
|
class A(T) {}
|
|
class B(T : A!T) {}
|
|
class B(T : A!T) {}
|
|
|
|
void main()
|
|
{
|
|
new B!(A!void);
|
|
}
|