Skip to content

Commit

Permalink
Tests: Explicitly un-use parameter with _ in simple transform.
Browse files Browse the repository at this point in the history
Technically, no “…in” should be necessary, but removing it entirely confuses `swiftlang-700.1.100.4`:
> `Cannot call value of non-function type 'Parameter?'`
  • Loading branch information
jdhealy committed Sep 28, 2015
1 parent 9dd97f9 commit f96d64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/PrettyColorsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class PrettyColorsTests: XCTestCase {

func testTransformForeground() {
var formerlyRed = Color.Wrap(foreground: .Red)
formerlyRed.foreground { color in
formerlyRed.foreground { _ in
return Color.EightBit(foreground: 227) // A nice yellow
}
XCTAssert( formerlyRed == Color.Wrap(foreground: 227) )
Expand Down

0 comments on commit f96d64d

Please sign in to comment.