mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This test case was also posted by a developer in https://bugs.swift.org/browse/SR-11153, but it appears to be a different problem that was fixed in Swift 5.2.
16 lines
610 B
Swift
16 lines
610 B
Swift
// RUN: %target-swift-frontend -emit-ir -primary-file %S/Inputs/sr11153_2_other.swift -primary-file %s
|
|
// RUN: %target-swift-frontend -emit-ir %S/Inputs/sr11153_2_other.swift %s
|
|
|
|
class WatchRegistry {
|
|
func single<S: Snapshotting>(objectType: S.Type) throws -> Watch<S>
|
|
{
|
|
return try Watch<S>.singleObject(objectType: S.self, properties: S.ChangeType.PropertiesType.all)
|
|
}
|
|
}
|
|
|
|
class Watch<SnapshotType : Snapshotting> {
|
|
static func singleObject(objectType: SnapshotType.Type, properties: SnapshotType.ChangeType.PropertiesType) throws -> Watch<SnapshotType> {
|
|
fatalError()
|
|
}
|
|
}
|