diff options
Diffstat (limited to 'tests/projects/plugins/project/src/swift/example.swift')
-rw-r--r-- | tests/projects/plugins/project/src/swift/example.swift | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/plugins/project/src/swift/example.swift b/tests/projects/plugins/project/src/swift/example.swift new file mode 100644 index 00000000000..194455d6b70 --- /dev/null +++ b/tests/projects/plugins/project/src/swift/example.swift @@ -0,0 +1,10 @@ + +let names = ["Chris", "Alex", "Ewa", "Barry", "Daniella"] + +func backwards(s1: String, s2: String) -> Bool { + return s1 > s2 +} + +var reversed = sorted(names, backwards); + +if (true) { print(reversed) } |