File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
validation-test/IDE/crashers_2_fixed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ffe746eda3469b5933738aa8f577b2d89201cf45
2
+ refs/heads/master: 23a708b7752841ed841b70d062dfd6e00d488436
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -1948,6 +1948,10 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
1948
1948
if (!MaybeNominalType->mayHaveMembers ())
1949
1949
return T;
1950
1950
1951
+ // We can't do anything if the base type has unbound generic parameters.
1952
+ if (MaybeNominalType->hasUnboundGenericType ())
1953
+ return T;
1954
+
1951
1955
// For everything else, substitute in the base type.
1952
1956
auto Subs = MaybeNominalType->getMemberSubstitutionMap (M, VD);
1953
1957
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
2
+
3
+ class Foo < T> {
4
+ }
5
+
6
+ extension Foo where T: Comparable {
7
+ func foo( ) { }
8
+ }
9
+
10
+ protocol P {
11
+ typealias alias = Foo
12
+ }
13
+ protocol P { }
14
+
15
+ func Test( ) {
16
+ P . alias. #^COMPLETE^#
17
+ }
You can’t perform that action at this time.
0 commit comments