Fix crash in DependentGenericTypeResolver::resolveDependentMemberType

An erroneous `baseTy` would cause resolveArchetype to return nullptr, resulting in a null dereference.
This commit is contained in:
Jacob Bandes-Storch
2015-12-10 14:51:31 -08:00
parent 21f081fc1a
commit 61dea21228
551 changed files with 555 additions and 551 deletions

View File

@@ -0,0 +1,20 @@
// 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{
{
{
{
{
{
}}}}}
struct B<T{class D{
struct a{
class d
func u{
{}}struct d
}}
enum S<T: T.b