-
Notifications
You must be signed in to change notification settings - Fork 9
error: use of unresolved identifier #25
Comments
Function was originally internal. Changing it to public produces identically results though. Running Swift REPL directly and trying to import Example and run answer fails pretty much the same way:
Running |
the |
Thanks for the detailed write-up, @schwa. I was able to reproduce this locally. The reason that /*
```swift doctest
import Example
answer() // 42
```
*/
public func answer() -> Int {
return 42
}
|
#30 fixes this issue, but goes too far in its solution by running the entire source file ahead of any expectations (when not running with |
This seems to be what I was seeing with #19.
I have a very simple and freshly generated package:
Example.swift
contains:I run swift doctest from the Example directory as so:
And get the following error back out:
The text was updated successfully, but these errors were encountered: