// RUN: %target-typecheck-verify-swift struct CustomString : ExpressibleByStringLiteral { init(stringLiteral value: T) {} } struct CustomExtendedGraphemeCluster : ExpressibleByExtendedGraphemeClusterLiteral { init(extendedGraphemeClusterLiteral value: T) {} } struct CustomUnicodeScalar : ExpressibleByUnicodeScalarLiteral { init(unicodeScalarLiteral value: T) { } } func verify(stringLiteral value: CustomString, with: T.Type) { } func verify( extendedGraphemeClusterLiteral value: CustomExtendedGraphemeCluster, with: T.Type) { } func verify( unicodeScalarLiteral value: CustomUnicodeScalar, with: T.Type) { } verify(unicodeScalarLiteral: "å", with: UnicodeScalar.self) verify(unicodeScalarLiteral: "ß", with: Character.self) verify(unicodeScalarLiteral: "c", with: String.self) verify(unicodeScalarLiteral: "∂", with: StaticString.self) verify(extendedGraphemeClusterLiteral: "a", with: Character.self) verify(extendedGraphemeClusterLiteral: "❄︎", with: String.self) verify(extendedGraphemeClusterLiteral: "김", with: StaticString.self) verify(stringLiteral: "abc", with: String.self) verify(stringLiteral: "∂éƒg", with: StaticString.self)