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

Incorrect diagnostic message #58

Open
Parean opened this issue Dec 23, 2020 · 0 comments
Open

Incorrect diagnostic message #58

Parean opened this issue Dec 23, 2020 · 0 comments

Comments

@Parean
Copy link

Parean commented Dec 23, 2020

# test.mpl

Int32:  [v: 0i32 dynamic; @v];

() () () [
  val: 0nx Int32 addressToReference;
  42i32 !val
] "main" exportFunction

command

mplc test.mpl

output

test.mpl(5,9): error, [!val], types mismatch, src is i32C,
dst is i32R
test.mpl(6,10): [exportFunction], called from here
test.mpl(1,1): [], called from here

expected

test.mpl(5,9): error, [!val], types mismatch, src is i32CT static: 42,
dst is i32R
test.mpl(6,10): [exportFunction], called from here
test.mpl(1,1): [], called from here
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

1 participant