You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/attr/attr_abi.swift
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -279,17 +279,20 @@ var async11Var: Int { get async { fatalError() } }
279
279
// PBD shape checking
280
280
//
281
281
282
-
@abi(var x1, y1: Int) // expected-error {{cannot give pattern binding the ABI of a binding with more patterns}}
283
-
var x1: Int =0
282
+
@abi(var x1, y1: Int)
283
+
var x1: Int =0 // expected-error {{'abi' attribute can only be applied to a single var; declare each var separately}}
284
284
285
285
@abi(var x2: Int)
286
-
var x2=0, y2: Int =0 // expected-error {{cannot give pattern binding the ABI of a binding with fewer patterns}}
286
+
var x2=0, y2: Int =0 // expected-error {{'abi' attribute can only be applied to a single var; declare each var separately}}
287
287
288
-
@abi(var(x3, y3):(Int, Int),(a3, b3):(Int, Int)) // expected-error {{no match for ABI var 'b3'}}
289
-
var(x3, y3):(Int, Int)=(0,0), a3: Int =0
288
+
@abi(var(x3, y3):(Int, Int),(a3, b3):(Int, Int))
289
+
var(x3, y3):(Int, Int)=(0,0), a3: Int =0 // expected-error {{'abi' attribute can only be applied to a single var; declare each var separately}}
290
290
291
291
@abi(var(x4, y4):(Int, Int), a4: Int)
292
-
var(x4, y4):(Int, Int)=(0,0),(a4, b4):(Int, Int)=(0,0) // expected-error {{no match for var 'b4' in the ABI}}
292
+
var(x4, y4):(Int, Int)=(0,0),(a4, b4):(Int, Int)=(0,0) // expected-error {{'abi' attribute can only be applied to a single var; declare each var separately}}
0 commit comments