| Issue 105: | Closure return value not casted to the correct type - Show stopper.. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Compile the code below using the CPP target
2.
3.
What is the expected output? What do you see instead?
It should compile correctly.
I see some errors regarding the type of the f function returned value (CPP phase)
Please complete the following class with minimal code reproducing the
problem :
class Test {
static function main() {
}
function bar(x : Int) : Void {
}
public function foo(f: Int -> Test, t : Int): Void {
f(t).bar(t);
// Works:
// var tst : Test = f(t);
// tst.bar(t);
}
}
Please provide any additional information below.
it works if I subtitue a variable, however, it is completely impractical to rewrite all existing libraries..
Must be the same problem that the function and switch I've just post earlier but I think it's a good test case (perhaps simpler).
Mar 15, 2011
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|