mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
25 lines
270 B
D
25 lines
270 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail10082.d(24): Error: cannot infer type from overloaded function symbol `&foo`
|
|
---
|
|
*/
|
|
|
|
mixin template T()
|
|
{
|
|
int foo()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
class A
|
|
{
|
|
mixin T;
|
|
mixin T;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
auto x = &A.foo;
|
|
}
|