mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
addImplicitConstructors() will crash if validateDecl() does not produce a valid signature for one of the class's constructors because the constructor is already being validated. This was triggered during associated type inference in the test case in the radar. Fixes <rdar://problem/30751491>.
8 lines
266 B
Swift
8 lines
266 B
Swift
// RUN: not %target-swift-frontend %s -typecheck -o /dev/null
|
|
|
|
class FakeDictionary<KeyType, ValueType> : ExpressibleByDictionaryLiteral {
|
|
convenience required init(dictionaryLiteral elements: (FakeDictionary.Key, FakeDictionary.Value)...) {
|
|
self.init()
|
|
}
|
|
}
|