Sema: Accept @_implementationOnly on enums and classes

This commit is contained in:
Alexis Laferrière
2025-10-23 09:53:24 -07:00
parent b52781e1e1
commit 5bffd70452
4 changed files with 11 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
// RUN: %target-typecheck-verify-swift %s
@_implementationOnly struct MyStruct {}
// expected-error@-1{{'@_implementationOnly' on a type requires '-enable-experimental-feature CheckImplementationOnly'}}