Skip to content

Commit f14528b

Browse files
Use @retroactive in Swift 6.0 compiler and newer only (#919)
* Use @retroactive in Swift 6.0 and newer only * Use @retroactive in Swift 5.10 and newer only * Use @retroactive in Swift 6.0 compiler and newer only
1 parent ced157c commit f14528b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/NodesGenerator/YAMLDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Codextended
1111
import Yams
1212

1313
// Enables Codextended with YAMLDecoder [https://github.com/JohnSundell/Codextended]
14-
#if swift(>=5.9)
14+
#if compiler(>=6.0)
1515
extension YAMLDecoder: @retroactive AnyDecoder {}
1616
#else
1717
extension YAMLDecoder: AnyDecoder {}

0 commit comments

Comments
 (0)