class Foo {
var v1;
private var v2;
function f1(v1, v2_) {
self.v1 = v1;
self.v2 = v2_;
}
function f2(v1, v2) {
self.v1 = v1;
self.v2 = v2;
}
}
function test() {
var f = new Foo();
f.f1(1, 2);
f.f2(1, 2);
}
While compilation works fine, executing test() will give:
Could not find symbol v2.
Symbol Not Found Error
in f2 (...\test.mc:12)
in test (...\test.mc:19)
Possible reason:
The compiler cannot correctly resolve v2 member of class Foo, if a method parameter with the same name exists.