1234567891011121314151617181920212223242526272829303132 |
- var RTL$ = {
- extend: function (cons, base){
- function Type(){}
- Type.prototype = base.prototype;
- cons.prototype = new Type();
- cons.prototype.constructor = cons;
- }
- };
- var m = function (){
- function T(){
- }
- function Derived(){
- T.call(this);
- }
- RTL$.extend(Derived, T);
- function RecordWithField(){
- this.i = 0;
- }
- function RecordWithFieldDerived(){
- T.call(this);
- }
- RTL$.extend(RecordWithFieldDerived, T);
- function passAsArgument(o/*T*/){
- }
- function RecordWithParamConstructor(a/*INTEGER*/){
- }
- passAsArgument(new T());
- var r = new T();
- var i = new RecordWithField().i;
- var rParam = new RecordWithParamConstructor(123);
- }();
|