Skip to content

Commit

Permalink
Merge pull request #10358 from xedin/sr-5245-testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci committed Jun 17, 2017
2 parents 45dda95 + d793744 commit 91e7647
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/Constraints/construction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,20 @@ extension S3 {
}

let s3b = S3(maybe: s3a)

// SR-5245 - Erroneous diagnostic - Type of expression is ambiguous without more context
class SR_5245 {
struct S {
enum E {
case e1
case e2
}

let e: [E]
}

init(s: S) {}
}

SR_5245(s: SR_5245.S(f: [.e1, .e2]))
// expected-error@-1 {{incorrect argument label in call (have 'f:', expected 'e:')}} {{22-23=e}}

0 comments on commit 91e7647

Please sign in to comment.