File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6db0540b8a7ebe536c6c514d8df98b318e197d99
2
+ refs/heads/master: 141d6bfbf0f476b90c9fe9edd471aac923de468b
3
3
refs/heads/master-next: 820766c166ae1ee499715d69f06953249c74f1de
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
1
+ public protocol Foo { }
2
+
3
+ public struct FooImpl : Foo {
4
+ public init ( ) { }
5
+ }
6
+
7
+ public func anyFoo( ) -> __opaque Foo {
8
+ return FooImpl ( )
9
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -emit-module-path %t/OpaqueCrossFileB.swiftmodule -module-name OpaqueCrossFileB %S/Inputs/OpaqueCrossFileB.swift
3
+ // RUN: %target-swift-frontend -I %t -emit-ir -verify %s
4
+
5
+ import OpaqueCrossFileB
6
+
7
+ dump ( anyFoo ( ) )
8
+
You can’t perform that action at this time.
0 commit comments