// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module %s -DLIBRARY -I %S/Inputs/0068-issue-46438/ -o %t/Lib.swiftmodule // RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/0068-issue-46438/other.swift -I %S/Inputs/0068-issue-46438/ -I %t -module-name main -DVALID // Try again in an error configuration to make sure we don't crash. // RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/0068-issue-46438/other.swift -I %S/Inputs/0068-issue-46438/ -I %t -module-name main // REQUIRES: objc_interop // https://github.com/apple/swift/issues/46438 #if LIBRARY import BaseLib public class GrandSub: Sub {} #else import Lib func foo(object: GrandSub) { } #endif