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

Issue 37 - cast to specific type in Lamba doesn't work - haxe #37

Closed
issuesbot opened this issue May 28, 2013 · 2 comments
Closed

Issue 37 - cast to specific type in Lamba doesn't work - haxe #37

issuesbot opened this issue May 28, 2013 · 2 comments
Labels
platform-php Everything related to PHP

Comments

@issuesbot
Copy link

[Google Issue #37 : https://code.google.com/p/haxe/issues/detail?id=37]
by gaz...@gmail.com, at 09/01/2010, 11:43:25
What steps will reproduce the problem?

Create a new Haxe/PHP project with the attached file.

What is the expected output? What do you see instead?

From the mock data, the expected output should be two traces:
true
abcde

But when using cast to any specified type within the Lambda functions, the
following PHP error appears: "Parse error: syntax error, unexpected
T_CLASS" and the Lambda function returns false.

What version of the product are you using? On what operating system?

Haxe 2.04 compiled from SVN with cygwin 2009-01-07. WinXP.

Please provide any additional information below.

By removing the cast type, making it an unsafe cast, it works.

@issuesbot
Copy link
Author

[comment from franco.p...@gmail.com, published at 09/01/2010, 13:09:42]

@issuesbot
Copy link
Author

[comment from franco.p...@gmail.com, published at 24/07/2010, 10:50:22]
unable to reproduce the issue, probably alredy fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-php Everything related to PHP
Projects
None yet
Development

No branches or pull requests

1 participant