Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0048-sr2333.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

18 lines
364 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
public protocol Proto {
associatedtype One
associatedtype Two
static func bar<T>(elm: One, t: T) -> T
}
struct S<P: Proto> {
let x: P.Two
func foo<T>(_ t: T) -> T where P.Two == P.One {
let x: P.Two = self.x
let elm: P.One = x as! P.One
return P.bar(elm: elm, t: t)
}
}