Files
swift-mirror/test/ClangImporter/alias-invalid.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
These are tests that fail in the next commit without this flag. This
does not add -verify-ignore-unrelated to all tests with -verify, only
the ones that would fail without it. This is NFC since this flag is
currently a no-op.
2025-10-04 14:19:52 -07:00

23 lines
595 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs/custom-modules -enable-experimental-feature ImportMacroAliases
// REQUIRES: swift_feature_ImportMacroAliases
import Aliases
func f() {
InvalidCall() // expected-error{{cannot find 'InvalidCall' in scope}}
}
func g() {
V = 32 // expected-error{{cannot assign to value: 'V' is a get-only property}}
}
func h() {
let _ = overload // expected-error{{ambiguous use of 'overload'}}
}
func i() {
aliased_variadic(0, 0) // expected-error{{cannot find 'aliased_variadic' in scope}}
}