Files
swift-mirror/validation-test/compiler_crashers/0272-llvm-irbuilder-createcall.swift
2015-04-22 08:50:21 +00:00

16 lines
358 B
Swift

// RUN: not --crash %target-swift-frontend %s -parse
// XFAIL: no_asserts
// XFAIL: linux
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
class A {
class func a() -> Self {
return b(self.dynamicType)
}
}
func b<T>(t: AnyObject.Type) -> T! {
return nil
}