Skip to content

Commit acb46cb

Browse files
authored
Merge pull request #28443 from slavapestov/nested-type-class-extension
Add regression test for rdar://57265336
2 parents 0e0e4ef + 4f93be1 commit acb46cb

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class Foo {}
2+
3+
extension Foo {
4+
public struct Nested {
5+
public init() {}
6+
}
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-swift-frontend -emit-module %S/Inputs/finalize-nested-types-other.swift -module-name other -emit-module-path %t/other.swiftmodule
3+
// RUN: %target-swift-frontend -typecheck %s -I %t
4+
5+
import other
6+
7+
let t = Foo.self
8+
let n = t.Nested()

0 commit comments

Comments
 (0)