Files
swift-mirror/validation-test/compiler_crashers_fixed/0180-rdar45557325.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

14 lines
389 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -typecheck -verify
// REQUIRES: objc_interop
import Foundation
class MyClass: NSObject {
func f() {
let url = URL(url) // expected-error{{use of local variable 'url' before its declaration}}
// expected-note@-1 {{'url' declared here}}
// expected-error@-2 {{missing argument label 'string:' in call}}
}
}