Skip to content

calebkleveter/REPLTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REPLTest

To see the issue that this project shows, run the following:

  • swift run —repl
  • import REPLTest
  • print(Public.self)
  • print(Internal.self)

You should get the following:

error: repl.swift:3:7: error: use of unresolved identifier 'Internal'
print(Internal.self)

To verify that this also doesn't work for testable targets, run the following:

  • swift run --repl -Xswiftc -enable-testing
  • @testable import REPLTest
  • print(Public.self)
  • print(Internal.self)

You should get the same error as before.

About

An SPM project for showing a REPL bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages