projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge
[mono.git]
/
mcs
/
tests
/
test-ps-006.play
1
// Compiler options: test-ps-006-2.play
\r
2
\r
3
package
\r
4
{
\r
5
public class test
\r
6
{
\r
7
public static function Main():int
\r
8
{
\r
9
//Prop = 3;
\r
10
//if (Prop != 3)
\r
11
// return 1;
\r
12
\r
13
var m:TestClass = new TestClass ();
\r
14
m.Prop = 300;
\r
15
if (m.Prop != 300)
\r
16
return 2;
\r
17
\r
18
m["Prop"] = 500;
\r
19
if (m.Prop != 500)
\r
20
return 3;
\r
21
\r
22
if (m["Prop"] != 500)
\r
23
return 4;
\r
24
\r
25
return 0;
\r
26
}
\r
27
}
\r
28
}
\r
29
/*
\r
30
var n:Number = 4;
\r
31
\r
32
function get Prop():Number {
\r
33
return n;
\r
34
}
\r
35
\r
36
function set Prop(value:Number):void {
\r
37
n = value;
\r
38
}
\r
39
*/
\r