mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Under review [here](https://forums.swift.org/t/se-0499-support-copyable-escapable-in-simple-standard-library-protocols/83297). Multi-part version of #85079.
8 lines
301 B
Swift
8 lines
301 B
Swift
// RUN: %target-swift-frontend -dump-ast -swift-version 6 %s | %FileCheck %s
|
|
|
|
// CHECK: (func_decl decl_context={{.*}} range={{.*}} "test(v:)"
|
|
func test<T: Equatable>(v: T) {
|
|
// CHECK: (function_conversion_expr implicit type="@Sendable (T.Type) -> (borrowing T, borrowing T) -> Bool"
|
|
_ = v == v
|
|
}
|