Skip to content

Commit 8708905

Browse files
committed
unified: Make the test case type-checkable
The file now passes 'swiftc -typecheck' without errors
1 parent c811698 commit 8708905

2 files changed

Lines changed: 116 additions & 111 deletions

File tree

‎unified/ql/test/library-tests/dataflow/enums.swift‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
func source(_ s: String) -> String { return s }
2+
3+
@discardableResult
4+
func sink(_ s: Any) -> String { return "" }
5+
16
enum E {
27
case case1(String)
38
case case2(String)

0 commit comments

Comments
 (0)