Files
swift-mirror/test/Constraints/rdar38625824.swift
Erik Eckstein 39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00

12 lines
305 B
Swift

// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
func foo<T>(_: Any) -> T {
fatalError()
}
func foo<T>(_: Any?) -> T {
fatalError()
}
// CHECK: function_ref @$s12rdar386258243fooyxyplF : $@convention(thin) <τ_0_0> (@in_guaranteed Any) -> @out τ_0_0
var _: String = foo("hello")