We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384882d commit 8b099cdCopy full SHA for 8b099cd
test/ParseableInterface/can-import.swift
@@ -0,0 +1,14 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: echo 'public func externalFunc() {}' | %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t/Library.swiftinterface -
3
+// RUN: %target-swift-frontend -typecheck %s -I %t
4
+
5
+#if canImport(Library)
6
+import Library
7
+externalFunc()
8
+#else
9
+#error("unable to import Library from its parseable interface")
10
+#endif
11
12
+#if canImport(LibraryThatDoesNotExist)
13
+#error("should not return true for library that does not exist")
14
0 commit comments