blob: 90b6f7c47fbff5a0134e10b5d7a5c7107772764a [file]
// REQUIRED_ARGS: -de
/*
TEST_OUTPUT:
---
fail_compilation/fail245.d(37): Deprecation: variable `fail245.ClassWithDeps.value` is deprecated
fail_compilation/fail245.d(32): `value` is declared here
fail_compilation/fail245.d(38): Deprecation: variable `fail245.ClassWithDeps.value` is deprecated
fail_compilation/fail245.d(32): `value` is declared here
fail_compilation/fail245.d(39): Deprecation: variable `fail245.ClassWithDeps.value` is deprecated
fail_compilation/fail245.d(32): `value` is declared here
fail_compilation/fail245.d(40): Deprecation: variable `fail245.ClassWithDeps.value` is deprecated
fail_compilation/fail245.d(32): `value` is declared here
fail_compilation/fail245.d(42): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
fail_compilation/fail245.d(43): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
fail_compilation/fail245.d(44): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
fail_compilation/fail245.d(45): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
fail_compilation/fail245.d(46): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
fail_compilation/fail245.d(47): Deprecation: variable `fail245.ClassWithDeps.staticValue` is deprecated
fail_compilation/fail245.d(33): `staticValue` is declared here
---
*/
//import std.stdio;
class ClassWithDeps
{
deprecated int value;
deprecated static int staticValue;
void test(ClassWithDeps obj)
{
obj.value = 666;
this.value = 666;
auto n1 = obj.value;
auto n2 = this.value;
obj.staticValue = 102;
this.staticValue = 103;
ClassWithDeps.staticValue = 104;
auto n3 = obj.staticValue;
auto n4 = this.staticValue;
auto n5 = ClassWithDeps.staticValue;
}
}