Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8 base call only calling base object #426

Open
RayG opened this issue Jun 23, 2014 · 1 comment
Open

0.8 base call only calling base object #426

RayG opened this issue Jun 23, 2014 · 1 comment

Comments

@RayG
Copy link

RayG commented Jun 23, 2014

Using nugget version
namespace Test
{
public class a { public virtual void BaseTest() { } }
public class b : a { /* public override void BaseTest() { base.BaseTest(); } */ }
public class c : b { public override void BaseTest() { base.BaseTest(); } }
}

compiles to and fails with Test$b$.baseTest undefined

require(['ss'], function(ss) {
var $global = this;

// Test.a

function Test$a() {
}
var Test$a$ = {
baseTest: function() {
}
};

// Test.b

function Test$b() {
Test$a.call(this);
}
var Test$b$ = {

};

// Test.c

function Test$c() {
Test$b.call(this);
}
var Test$c$ = {
baseTest: function() {
Test$b$.baseTest.call(this);
}
};

var $exports = ss.module('Test', null,
{
a: [ Test$a, Test$a$, null ],
b: [ Test$b, Test$b$, Test$a ],
c: [ Test$c, Test$c$, Test$b ]
});

});

@andekande
Copy link
Contributor

This was discovered some time ago #295. Pull the latest cc branch.
If it does not help, include the BaseTest() call in Class b, as per your commented code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants