Skip to content

[SR-5302] Swift REPL rejects multiline string literal #4628

Open
@swift-ci

Description

@swift-ci
Previous ID SR-5302
Radar None
Original Reporter gwk (JIRA User)
Type Bug
Environment

Xcode 9b1, OSX10.12.5.
Xcode 9.2, macOS 10.13.2

Additional Detail from JIRA
Votes 2
Component/s LLDB for Swift
Labels Bug, REPL
Assignee None
Priority Medium

md5: f385f79678eab7118aa36b7e040da9ac

is duplicated by:

  • SR-11215 REPL doesn't understand multiline raw string literals

Issue Description:

$ swift
Welcome to Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8). Type :help for assistance.
  1> let s = """
error: repl.swift:1:9: error: unterminated string literal
let s = """
        ^

The REPL knows how to handle multiline array literals, so it ought to be able to handle unterminated triple quotes as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions