mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The parser attempts to recover here by producing a broken VarDecl with no parent pattern. The DeclChecker sees this when trying to install a default initializer in the linked regression test and crashes because it tries to look into a null parent pattern. rdar://74154023
10 lines
182 B
Swift
10 lines
182 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
public struct PeakMemoryUsage {
|
|
public let rawValue: UInt64
|
|
|
|
@_spi( init(rawValue: UInt64) {
|
|
self.rawValue = rawValue
|
|
}
|
|
}
|