Files
swift-mirror/test/multifile/inlinable.swift
Becca Royal-Gordon 3732c75e97 Adopt %kind for certain access control diagnostics
These particular changes slightly alter some diagnostics.
2023-07-19 13:06:51 -07:00

11 lines
414 B
Swift

// RUN: %target-swift-frontend -typecheck -verify %s %S/Inputs/inlinable-other.swift
@frozen public struct HasInitExpr {
public var hasInlinableInit = mutatingFunc(&OtherStruct.staticProp)
// expected-warning@-1 {{setter for static property 'staticProp' is internal and should not be referenced from a property initializer in a '@frozen' type}}
}
public func mutatingFunc(_: inout Int) -> Int {
return 0
}