a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
36 lines
354 B
C#
36 lines
354 B
C#
//
|
|
// Properties intermixed in assignments
|
|
//
|
|
|
|
using System;
|
|
|
|
class X {
|
|
|
|
static string v;
|
|
|
|
static string S {
|
|
get {
|
|
return v;
|
|
}
|
|
set {
|
|
v = value;
|
|
}
|
|
}
|
|
|
|
static string x, b;
|
|
|
|
public static int Main ()
|
|
{
|
|
|
|
x = S = b = "hlo";
|
|
if (x != "hlo")
|
|
return 1;
|
|
if (S != "hlo")
|
|
return 2;
|
|
if (b != "hlo")
|
|
return 3;
|
|
return 0;
|
|
}
|
|
}
|
|
|