Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0081-rdar30751491.swift
Slava Pestov 068f3a18da Sema: Fix crash if we try to look up constructors while validating a constructor
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>.
2017-03-13 01:50:41 -07:00

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()
}
}