mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This would just set the NominalTypeDecl's declared type to ErrorType, which caused problems elsewhere. Instead, generalize the logic used for AbstractFunctionDecl. This correctly wires up the GenericTypeParamDecl's archetypes even if the signature didn't validate, fixing crashes if the generic parameters of the type are referenced.
9 lines
281 B
Swift
9 lines
281 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
func b{{.B:func b{class A{struct b<T where g:T{{}class a
|
|
let s=a{
|