unix now has an autoconf based make system. currently the new make system only makes parser related files, back end stuff to be added soon. mac and windows makesystems will be checked in next. parser.cpp has been factored into token.*, lexer.*, and parser.* utilities.cpp has been factored into formatter.*, exception.*, mem.*, strings.*,ds.h, stlcfg.h, and algo.h git-svn-id: svn://10.0.0.236/trunk@86568 18797224-902f-48f8-a5cc-f745e15eee43
26 lines
293 B
JavaScript
26 lines
293 B
JavaScript
|
|
load("verify.js");
|
|
|
|
class C {
|
|
virtual var x:Integer;
|
|
var y:Integer;
|
|
}
|
|
|
|
class D extends C {
|
|
override function set x(a:Integer):Integer {return y = a*2}
|
|
}
|
|
|
|
|
|
var c:C = new C;
|
|
c.x = 5;
|
|
|
|
verify(c.x, 5.0);
|
|
verify(c.y, NaN);
|
|
|
|
var d:D = new D;
|
|
d.x = 5;
|
|
|
|
verify(d.x, NaN);
|
|
verify(d.y, 10.0);
|
|
|