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

unable to handling error on some syntax #90

Closed
arhen opened this issue Apr 10, 2019 · 3 comments
Closed

unable to handling error on some syntax #90

arhen opened this issue Apr 10, 2019 · 3 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@arhen
Copy link

arhen commented Apr 10, 2019

I've found several case.

 fn main() {
 	age := 9
 	mut r =
 	println(age)
 }

output : bug found message

 fn main() {
 	age := 9
 	mut _
 	println(age)
 }

output : nothing.
expected: error handling on syntax

@medvednikov
Copy link
Member

medvednikov commented Apr 10, 2019

# 1 is fixed, # 2 is a bit trickier.

@arhen
Copy link
Author

arhen commented Apr 10, 2019

when compiling, u must set #2 case as error syntax.

@medvednikov
Copy link
Member

Fixed.

larpon pushed a commit to larpon/v that referenced this issue Feb 24, 2022
@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants