Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/Sema/TypeCheckGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ Type GenericTypeToArchetypeResolver::resolveGenericTypeParamType(
if (gpDecl->isInvalid())
return ErrorType::get(gpDecl->getASTContext());

return GenericEnv->mapTypeIntoContext(gp);
if (auto *Env = GenericEnv)
return Env->mapTypeIntoContext(gp);

return ErrorType::get(gpDecl->getASTContext());
}

Type GenericTypeToArchetypeResolver::resolveDependentMemberType(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
a{
protocol e{
typealias e
extension{
let b{let a={
#^A^#func f:e
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

// RUN: not --crash %target-swift-frontend %s -emit-ir
// RUN: not %target-swift-frontend %s -emit-ir
{associatedtype b<T>func c:[T