Files
swift-mirror/validation-test/compiler_crashers_2_fixed/sr11153_2.swift
Slava Pestov 3644a5ec81 Add regression test for a fixed crasher
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.
2021-03-11 17:04:30 -05:00

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()
}
}