We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26c859 commit a0ae313Copy full SHA for a0ae313
test/Constraints/warn_long_compile.swift
@@ -1,6 +1,9 @@
1
// RUN: %target-typecheck-verify-swift -warn-long-expression-type-checking=1 -warn-long-function-bodies=1 %s
2
-func foo<T>(_ x: T) -> T { return x }
3
-func foo(_ x: Int) -> Int { return x }
+@_silgen_name("generic_foo")
+func foo<T>(_ x: T) -> T
4
+
5
+@_silgen_name("foo_of_int")
6
+func foo(_ x: Int) -> Int
7
8
func test(m: Double) -> Int {
9
// expected-warning@-1 {{global function 'test(m:)' took}}
0 commit comments