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,16 @@
// 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
{
struct S<T : {
enum S<T ? { S{
a b=a{
}}
class D{
struct D{
var b "
}}}fu
class c<T : T.e}B