'Digit' initializer is inaccessible due to 'internal' protection level
Closed this issue · 1 comments
dirk68-fu commented
using the following code in a test app, importing the SwiftRegexDSL Package does not work
import SwiftRegexDSL
struct Number:Regex{
var body: Regex{
Digit()
.oneOrMore()
}
}
and results in the following compiler error:
'Digit' initializer is inaccessible due to 'internal' protection level
Default initializers in Swift are declared internal and can't be accessed from outside the package.
Unfortunately this means you have to manually add a public memberwise initializer to all structs using a default one now (digit is only one example)
kodlian commented
fixed in latest master