Files
swift-mirror/test/Parse/string_literal_eof7.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

10 lines
182 B
Swift

// RUN: %target-typecheck-verify-swift
// expected-error@+4 {{unterminated string literal}}
// expected-error@+1 {{unterminated string literal}}
_ = """
foo
\("bar
baz