mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
f05d1cab32
This is not supported for the same reason you can't have a noncopyable variadic parameter, but the code was hard-coded to check for copyability only. Generalize this to apply the generic signature for Array via the common code path, and add a custom note to explain why those requirements are checked in the first place. Cleaning this up also fixed some fuzzer crashes. Reported on the forums: https://forums.swift.org/t/variadic-escapable-arguments-crash-the-compiler/86727/2
8 lines
261 B
Swift
8 lines
261 B
Swift
// RUN: %target-typecheck-verify-swift -parse-stdlib
|
|
|
|
// This file is for tests that used to cause the type checker to crash.
|
|
|
|
class DictStringInt {
|
|
init(dictionaryLiteral xs: ()...) {} // expected-error 2{{broken standard library: cannot find Array type}}
|
|
}
|