Skip to content

Commit 016e3dc

Browse files
committed
[Test] Adds a validation test
1 parent c904a59 commit 016e3dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
protocol Foo {}
4+
func foo(_ bar: Foo) {}
5+
foo(true ? "a" : "b")

0 commit comments

Comments
 (0)