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

* Improve "need `this`" error for function calls * Improve "need `this`" error for member variables * Improve "need this" error for address of variable * Remove dead error
16 lines
237 B
D
16 lines
237 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail25.d(14): Error: accessing non-static variable `yuiop` requires an instance of `Qwert`
|
|
---
|
|
*/
|
|
|
|
class Qwert
|
|
{
|
|
int yuiop;
|
|
|
|
static int asdfg()
|
|
{
|
|
return Qwert.yuiop + 105;
|
|
}
|
|
}
|