mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The existing verification seems unnecessarily brittle, but this isn't a general fix for that problem. This fixes one instance of where we are generating perfectly valid pointer conversions that the verifier is currently blowing up on. I've opened https://bugs.swift.org/browse/SR-8264 to track reworking this verification to not be quite so brittle.
6 lines
177 B
Swift
6 lines
177 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func foo(_ a: [[UInt8]], _ p: [UnsafeRawPointer]) {
|
|
foo(a, a) // expect-warning {{all paths through this function will call itself}}
|
|
}
|