Skip to content

Commit e135f5d

Browse files
jketemaPaolo Tranquilli
authored andcommitted
Swift: Update ObjectLiteralExpr test
The entities now have proper error types instead of missing types.
1 parent b6076c0 commit e135f5d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| object_literals.swift:5:5:5:42 | #fileLiteral(...) | hasType: | no | getKind: | 0 | getNumberOfArguments: | 1 |
2-
| object_literals.swift:6:5:6:61 | #colorLiteral(...) | hasType: | no | getKind: | 2 | getNumberOfArguments: | 4 |
3-
| object_literals.swift:7:5:7:44 | #imageLiteral(...) | hasType: | no | getKind: | 1 | getNumberOfArguments: | 1 |
1+
| object_literals.swift:5:5:5:42 | #fileLiteral(...) | hasType: | yes | getKind: | 0 | getNumberOfArguments: | 1 |
2+
| object_literals.swift:6:5:6:61 | #colorLiteral(...) | hasType: | yes | getKind: | 2 | getNumberOfArguments: | 4 |
3+
| object_literals.swift:7:5:7:44 | #imageLiteral(...) | hasType: | yes | getKind: | 1 | getNumberOfArguments: | 1 |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| object_literals.swift:5:5:5:42 | #fileLiteral(...) | <<error type>> |
2+
| object_literals.swift:6:5:6:61 | #colorLiteral(...) | <<error type>> |
3+
| object_literals.swift:7:5:7:44 | #imageLiteral(...) | <<error type>> |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//codeql-extractor-expected-status: 1
22

33
// These require Foundation and UIKit/AppKit to really work
4-
// That is why compilation will fail and the entities will not have a type
4+
// That is why compilation will fail and the entities will have error types
55
_ = #fileLiteral(resourceName: "file.txt")
66
_ = #colorLiteral(red: 255, green: 255, blue: 255, alpha: 50)
77
_ = #imageLiteral(resourceName: "image.gif")

0 commit comments

Comments
 (0)