mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #84593 from kavon/manual-ownership/usability-fixes-5
ManualOwnership: don't diagnose unknown callees
This commit is contained in:
@@ -144,6 +144,14 @@ func basic_methods_consuming_fixed(_ t1: Triangle) {
|
||||
(copy t2).consuming() // FIXME: why is this not propagated?
|
||||
}
|
||||
|
||||
open class OpenClass {
|
||||
open func classMethod() {}
|
||||
}
|
||||
@_manualOwnership
|
||||
func callOpenMethod(_ c: OpenClass) {
|
||||
return c.classMethod()
|
||||
}
|
||||
|
||||
@_manualOwnership
|
||||
@discardableResult
|
||||
func consumingFunc(_ t0: consuming Triangle) -> Bool { return false }
|
||||
|
||||
Reference in New Issue
Block a user