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

Needs to block the impossible type conversion. #345

Closed
Kray-G opened this issue Oct 25, 2021 · 0 comments
Closed

Needs to block the impossible type conversion. #345

Kray-G opened this issue Oct 25, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kray-G
Copy link
Owner

Kray-G commented Oct 25, 2021

Now the code below causes crash.

native func(b:int) :obj {
    var c = b as obj;
    return c;
}
func(10);

It must be blocked at compiling.

@Kray-G Kray-G self-assigned this Oct 25, 2021
@Kray-G Kray-G added the bug Something isn't working label Oct 25, 2021
@Kray-G Kray-G added this to the v1.1.0 milestone Oct 25, 2021
@Kray-G Kray-G closed this as completed in 1723b2e Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant