Files
swift-mirror/test/NameLookup/stdlib.swift
Hamish Knight 5b99c2020f NFC: Re-organize NameBinding tests
The directory currently seems to have a mix of
tests for import resolution and name lookup.
Therefore split it into two directories;
ImportResolution and NameLookup.
2020-03-29 18:51:09 -07:00

25 lines
730 B
Swift

// RUN: %target-typecheck-verify-swift -parse-stdlib -module-name Swift
enum Optional<T> {
case none
case some(T)
}
// <rdar://problem/15593704>
struct X {
// This is in parse-stdlib mode with no default literal type.
var _maxLoadFactorInverse = 1.0 // expected-error{{standard library error: _MaxBuiltinFloatType is not properly defined}}
}
typealias MaxBuiltinFloatType = Builtin.FPIEEE64
protocol _ExpressibleByBuiltinFloatLiteral {
static func _convertFromBuiltinFloatLiteral(
value: MaxBuiltinFloatType) -> Self
}
protocol ExpressibleByFloatLiteral {
associatedtype FloatLiteralType : _ExpressibleByBuiltinFloatLiteral
static func convertFromFloatLiteral(value: FloatLiteralType) -> Self
}