v icon indicating copy to clipboard operation
v copied to clipboard

compile error without a new line

Open tonylinyy opened this issue 7 years ago • 6 comments

the code is: fn main() { println('v') } get a panic: V panic: string index out of range: 27 / 27

if I press enter after the },compile will success fn main() { println('v') } --here add a new empty line

tonylinyy avatar Apr 22 '19 02:04 tonylinyy

I can't reproduce this problem.

erdian718 avatar Apr 22 '19 03:04 erdian718

I use v compiler not the web playground

tonylinyy avatar Apr 22 '19 03:04 tonylinyy

I use v compiler not the web playground

update the compiler perhaps

ghost avatar Apr 22 '19 03:04 ghost

this problem still in my macos,after I upgrade to V0.0.2 I try with sublime text and idea,all the same

tonylinyy avatar Apr 23 '19 14:04 tonylinyy

I can't reproduce this, will investigate.

medvednikov avatar Apr 23 '19 14:04 medvednikov

Fixed. Will be live in 0.0.5.

medvednikov avatar Apr 26 '19 18:04 medvednikov