Skip to content

Commit

Permalink
Reformat test_problem_SingleStyleParameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhealy committed Feb 2, 2015
1 parent a529a45 commit fdd0bd9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Tests/PrettyColorsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ class PrettyColorsTests: XCTestCase {
}

func test_problem_SingleStyleParameter() {
//// As of `swift-600.0.57.3`, the following statement errors:
//// «Extra argument 'style' in call»
/*
As of `swift-600.0.57.3`, the following statement errors:
«Extra argument 'style' in call»
*/
// Color.Wrap(style: .Bold)
//// Removing the supposedly "extra" argument 'style' errors:
//// «'().Type' does not have a member named 'Bold'»

/*
Removing the supposedly "extra" argument 'style' errors:
«'().Type' does not have a member named 'Bold'»
*/
// Color.Wrap(.Bold)

/*
The true problem appears to be the ambiguity between the
two functions of the form «init(foreground:background:style:)».
two functions of the form `init(foreground:background:style:)`.
*/

// Workarounds:
Expand Down

0 comments on commit fdd0bd9

Please sign in to comment.