Files
swift-mirror/test/DebugInfo/generic_enum_closure.swift
Adrian Prantl 9f84b92aa4 Mangler: Implement hierarchical lookup of generic parameters for the case
where we don't find an ArcheType in the local context.
Fixes rdar://problem/15033772

Swift SVN r8507
2013-09-20 19:00:29 +00:00

15 lines
370 B
Swift

// RUN: %swift -triple x86_64-apple-darwin10 %s -emit-llvm -g -o - | FileCheck %s
struct __CurrentErrno {}
struct CErrorOr<T>
{
var value : GenericIVar<Optional<T>>
init(x : __CurrentErrno) {
value = GenericIVar(.None)
}
func isError() -> Bool {
// CHECK: _TtGSqQ__
assert(value.value, "the object should not contain an error")
return false
}
}