Files
swift-mirror/test/NameLookup/custom_attrs_ambiguous.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

18 lines
651 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -I %t -o %t %S/Inputs/custom_attrs_A.swift
// RUN: %target-swift-frontend -emit-module -I %t -o %t %S/Inputs/custom_attrs_B.swift
// RUN: %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -verify-ignore-unknown -I %t %s
import custom_attrs_A
import custom_attrs_B
// https://github.com/apple/swift/issues/55912
struct Test {
@Wrapper var x: Int = 17
// expected-error@-1 {{'Wrapper' is ambiguous for type lookup in this context}}
init(@Builder closure: () -> Int) {}
// expected-error@-1 {{'Builder' is ambiguous for type lookup in this context}}
}