Revision 42e827e6e7247224c068a9dce8f6eabd2ab892ba authored by Devin Coughlin on 21 January 2016, 00:12:56 UTC, committed by Devin Coughlin on 21 January 2016, 01:22:15 UTC
1 parent ac1f5a6
Raw File
import.swift
// RUN: rm -rf %t && mkdir %t
// RUN: %target-swift-frontend -emit-module -o %t %s -module-name Import
// RUN: %target-swift-frontend -parse -I %t %s -module-name main -DMAIN -verify

// Note: This file is compiled both as a library and as a client of that library. The -verify checks only apply to the client.

import Import

public func test() {
  Import.test()
  Import.hidden() // expected-error {{module 'Import' has no member named 'hidden'}}
}

internal func hidden() {}
back to top