Page MenuHomeFeedback Tracker

Multiline strings break line count
Assigned, NormalPublic

Description

If you add a multiline string and get/click any error or e.g click "Go to declaration" (Anything that jumps to a specific line) it doesnt take the extra multilines into account:

class MultiLineTest
{
	string test = "\
	";
	
	Foo bar;
	
	string test2 = "\
	\
	\
	\
	\
	\
	";
	
	Foo2 bar2
}

1x multiline: Error shows on line 5 but is actually on line 6 (-1)
6x multiline: Error shows on line 9 but is actually on line 16 (-6 but also -1 from the first 1x multiline)

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create a multiline var
  2. Get error
  3. Check the line or click the error
  4. Jump to the wrong line
  5. Be very confused

Event Timeline

Geez changed the task status from New to Assigned.Wed, Apr 23, 12:19 PM