mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Instead, special-case cross-references to use the empty identifier as the name of the Builtin module. This way imported modules will be able to use builtin types and functions without the main TU having access. Swift SVN r5947
13 lines
377 B
Swift
13 lines
377 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %swift -emit-module -parse-stdlib -o %t/alias_builtin.swiftmodule %S/Inputs/alias_builtin.swift
|
|
// RUN: %swift -I=%t -parse %s -verify
|
|
|
|
import alias_builtin
|
|
|
|
var a : TheBuiltinInt64
|
|
|
|
// Check that it really is Builtin.Int64.
|
|
var wrapped = Int64(a) // okay
|
|
var badWrapped = Int32(a) // expected-error{{expression does not type-check}}
|