Files
swift-mirror/test/Constraints/rdar146383201.swift
Hamish Knight 9cad10ddcd [CS] Check hasType in isPlaceholderVar
Patterns assert that a type is set in `getType`, check `hasType`
before querying.

rdar://146383201
2025-06-02 14:33:10 +01:00

19 lines
295 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
// RUN: %target-swift-frontend -typecheck -verify -primary-file %t/a.swift %t/b.swift -plugin-path %swift-plugin-dir
//--- a.swift
func foo() {
_ = {
let i = 0
$bar.withValue(i) {}
}
}
//--- b.swift
@TaskLocal
var bar: Int?