Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0053-sr490.swift
Slava Pestov 412559af79 Add test cases for a few bugs that seem to be fixed already
Cleaning out some old JIRAs, don't want these to regress...
2017-01-04 02:02:29 -08:00

23 lines
520 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
enum Value {
case IntValue(Int)
}
protocol Storable {
associatedtype Representation
static var storageKey : String? { get }
var representation : Representation { get }
}
protocol RawProducable {
var rawValueForType : Int16 { get }
init<T: Storable where T.Representation == Self>(value: T)
}
extension Int : Storable {
static var storageKey : String? { return "int64Value" }
var representation : Value { return Value.IntValue(self) }
}