123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- var RTL$ = {
- extend: function extend(methods){
- methods.__proto__ = this.prototype; // make instanceof work
-
- // to see constructor name in diagnostic
- var result = methods.init;
- methods.constructor = result.prototype.constructor;
-
- result.prototype = methods;
- result.extend = extend;
- return result;
- }
- };
- var m = function (){
- function p1(arg1/*INTEGER*/){
- var T1 = RTL$.extend({
- init: function T1(){
- this.field1 = 0;
- }
- });
- var T2 = T1.extend({
- init: function T2(){
- T1.prototype.init.bind(this)();
- this.field2 = false;
- }
- });
- var i = 0;var j = 0;
- var b = false;
- var t1 = new T1();
- var t2 = new T2();
- i = arg1 + 1;
- t1.field1 = i;
- t2.field1 = t1.field1;
- b = true;
- t2.field2 = b;
- }
- function p2(){
- p1(123);
- }
- function p3(i/*INTEGER*/){
- p1(123);
- p2();
- p2();
- return 123;
- }
- function p4(){
- return p3(123) + p3(p3(123));
- }
- function p5(){
- return p5;
- }
- }();
|