mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
626 B
Swift
18 lines
626 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-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}}
|
|
}
|
|
|