microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 171 forks source link

Escape sequences in string literals are not recognized #455

Closed abacabadabacaba closed 4 years ago

abacabadabacaba commented 4 years ago

The documentation states that escape sequences such as \n in string literals are replaced with the corresponding characters. In fact, this doesn't happen. For example, Message("a\nb"); should print a and b on separate lines, but it actually prints a\nb.

bamarsha commented 4 years ago

Thanks for filing! I think that #458 was filed first (originally on qsharp-runtime - just transferred it over here). Let's keep tracking this bug in issue #458.