mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
414 B
Swift
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
|
|
}
|