Files
swift-mirror/test/Constraints/rdar42678836.swift
Slava Pestov 8d4b8e31aa Sema: Remove ScalarToTuple conversion
This either became dead shortly after the removal of Swift 3
compatibility mode from the constraint solver, or even earlier.

Note that the code completion test change is actually correct
because (Any) -> () is not convertible to () -> () in the
language.
2018-08-08 10:18:52 -07:00

6 lines
221 B
Swift

// RUN: %target-typecheck-verify-swift
func foo(chr: Character) -> String {
return String(repeating: String(chr)) // expected-error {{incorrect argument label in call (have 'repeating:', expected 'stringLiteral:')}}
}