Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar74154023.swift
Robert Widmann 013127a947 Fix a Simple Crash-On-Invalid For @_spi
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
2021-02-09 12:36:50 -08:00

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