Skip to content

Commit 8e9812b

Browse files
committed
---
yaml --- r: 345047 b: refs/heads/master c: 5b893d6 h: refs/heads/master i: 345045: b89cbd8 345043: 7ccee8e 345039: 1aa840e
1 parent 55cef37 commit 8e9812b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 69af97310cc1cab038d3392a5da9364847706455
2+
refs/heads/master: 5b893d601ccaec17d1e6802682ac0f549c237b54
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/AST/ConformanceLookupTable.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@ ConformanceLookupTable::getConformance(NominalTypeDecl *nominal,
818818
// declared.
819819
auto *conformingClass = cast<ClassDecl>(conformingNominal);
820820
Type superclassTy = type->getSuperclassForDecl(conformingClass);
821+
if (superclassTy->is<ErrorType>())
822+
return nullptr;
821823

822824
// Look up the inherited conformance.
823825
ModuleDecl *module = entry->getDeclContext()->getParentModule();
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
protocol P {}
4+
protocol Q {}
5+
class A : P {}
6+
class B : A {}
7+
8+
struct A<T:B> {
9+
var x: T { fatalError("death") }
10+
}

0 commit comments

Comments
 (0)