File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Sources/MarkdownPluginSwiftTests Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,36 @@ struct Autographs
85
85
#expect( self . landmarks. output == [ " (Int)->(Int)->Int " ] )
86
86
}
87
87
88
+ @Test mutating
89
+ func Var1( )
90
+ {
91
+ let decl : String = " static var x: (String)? { get } "
92
+ let _: Signature < Never > . Expanded = . init( decl, landmarks: & self . landmarks)
93
+
94
+ #expect( self . landmarks. inputs == [ ] )
95
+ #expect( self . landmarks. output == [ " String? " ] )
96
+ }
97
+
98
+ @Test mutating
99
+ func Var2( )
100
+ {
101
+ let decl : String = " static var x: (T?, Set<T>) { get set } "
102
+ let _: Signature < Never > . Expanded = . init( decl, landmarks: & self . landmarks)
103
+
104
+ #expect( self . landmarks. inputs == [ ] )
105
+ #expect( self . landmarks. output == [ " T? " , " Set<T> " ] )
106
+ }
107
+
108
+ @Test mutating
109
+ func Var3( )
110
+ {
111
+ let decl : String = " var x: (Int, Int) -> (Int) -> Int "
112
+ let _: Signature < Never > . Expanded = . init( decl, landmarks: & self . landmarks)
113
+
114
+ #expect( self . landmarks. inputs == [ ] )
115
+ #expect( self . landmarks. output == [ " (Int,Int)->(Int)->Int " ] )
116
+ }
117
+
88
118
@Test mutating
89
119
func SomeAndAnyTypes( )
90
120
{
You can’t perform that action at this time.
0 commit comments