Files
swift-mirror/test/Parse/string_literal_eof5.swift
Rintaro Ishizaki a0ebdbc089 [Lexer] Fix assertion failure for unterminated string literal
in string interpolation in multiline string literal.

    """
    \("<-this is unterminated.
    """

In this case, the outer multiline literal should form 'tok::unknown'
along with a error message.
2018-09-22 02:09:19 +09:00

8 lines
154 B
Swift

// RUN: %target-typecheck-verify-swift
// NOTE: DO NOT add a newline at EOF.
// expected-error@+1 {{unterminated string literal}}
_ = """
foo
\(