ljr/wcmtools/s2/tests/readonly.s2

21 lines
226 B
Plaintext
Raw Normal View History

2019-02-05 21:49:12 +00:00
#-*-perl-*-
layerinfo type = core;
layerinfo "majorversion" = 0;
class Foo
{
var readonly int a;
var int b;
}
property Foo f;
function main()
{
var Foo f;
$f.b = 1;
println "Foo.b = $f.b";
# $f.a = 2;
}