carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Explorer does not support current block string literal syntax

Open etalian opened this issue 3 years ago • 0 comments

Block string literal syntax was recently changed (#1360), however Explorer does not accept the new syntax:

package ExplorerTest api;

fn Main() -> i32 {
  var block: String = '''
    This is a block string literal
    ''';
  return 0;
}

produces: COMPILATION ERROR: invalid character '\x27' in source file.

etalian avatar Aug 27 '22 18:08 etalian