emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode fa22f12 461/496: Add tests for multiple trailin


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode fa22f12 461/496: Add tests for multiple trailing closures
Date: Sun, 29 Aug 2021 11:34:28 -0400 (EDT)

branch: elpa/swift-mode
commit fa22f1228f1086510cecbadcafb5b2811a7bafe4
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>

    Add tests for multiple trailing closures
    
    
https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md
---
 test/swift-files/indent/expressions.swift | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/test/swift-files/indent/expressions.swift 
b/test/swift-files/indent/expressions.swift
index 3e7ffc2..6be2c34 100644
--- a/test/swift-files/indent/expressions.swift
+++ b/test/swift-files/indent/expressions.swift
@@ -569,3 +569,20 @@ foo[
 
 foo
 [1] // this is not a subscript expression
+
+
+// Multiple Trailing Closures
+// 
https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md
+
+let x = foo
+  .bar {
+      aaa()
+  } baz: {
+      aaa()
+  }
+
+let x = foo.bar {
+    aaa()
+} baz: {
+    aaa()
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]