Skip to content

Commit caaba33

Browse files
committed
un-XFAIL type_in_function.swift
We don't support nested types in methods of generic types, so the new error popping up about `A` being noncopyable is not too surprising, but also not the point of this test anyway.
1 parent 85f742e commit caaba33

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/decl/nested/type_in_function.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -parse-as-library
22

3-
// XFAIL: noncopyable_generics
4-
53
// Generic class locally defined in non-generic function (rdar://problem/20116710)
64
func f3() {
75
class B<T> {}
@@ -122,7 +120,7 @@ struct OuterGenericStruct<A> {
122120
func middleFunction() {
123121
struct ConformingType : Racoon {
124122
// expected-error@-1 {{type 'ConformingType' cannot be nested in generic function 'middleFunction()'}}
125-
typealias Stripes = A
123+
typealias Stripes = String
126124
}
127125
}
128126
}

0 commit comments

Comments
 (0)