mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
443 B
D
20 lines
443 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test12228.d(12): Error: undefined identifier `this`, did you mean `typeof(this)`?
|
|
fail_compilation/test12228.d(18): Error: undefined identifier `super`, did you mean `typeof(super)`?
|
|
fail_compilation/test12228.d(19): Error: undefined identifier `super`, did you mean `typeof(super)`?
|
|
---
|
|
*/
|
|
|
|
class C
|
|
{
|
|
shared(this) x;
|
|
}
|
|
|
|
class D : C
|
|
{
|
|
alias x = typeof(super).x;
|
|
shared(super) a;
|
|
super b;
|
|
}
|