diff options
author | Martin Odersky <odersky@gmail.com> | 2016-08-21 10:58:51 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-08-21 10:58:51 +0200 |
commit | 3360130593e3949b455b179f244ad76d7aedfe0e (patch) | |
tree | 1469e6fa5b6709e9444bc23e661e10afc93e0550 /tests | |
parent | 74aef53c8e894d5ce46151e098c121a73ede9539 (diff) | |
download | dotty-3360130593e3949b455b179f244ad76d7aedfe0e.tar.gz dotty-3360130593e3949b455b179f244ad76d7aedfe0e.tar.bz2 dotty-3360130593e3949b455b179f244ad76d7aedfe0e.zip |
Address reviewers comments.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/t2913.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/pos/t2913.scala b/tests/pos/t2913.scala index fa91e6f41..f91ed7b51 100644 --- a/tests/pos/t2913.scala +++ b/tests/pos/t2913.scala @@ -18,7 +18,7 @@ object TestNoAutoTupling { a.foo() a.foo(1) - a.foo("") // Without implicits, a type error regarding invalid argument types is generated at `""`. This is + a.foo("") // Without implicits, a type error regarding invalid argument types is generated at `""`. This is // the same position as an argument, so the 'second try' typing with an Implicit View is tried, // and AToRichA(a).foo("") is found. // @@ -29,7 +29,6 @@ object TestNoAutoTupling { a.foo("a", "b") // Without implicits, a type error regarding invalid arity is generated at `foo(<error>"", "")`. // Typers#tryTypedApply:3274 only checks if the error is as the same position as `foo`, `"a"`, or `"b"`. - // None of these po } // t0851 is essentially the same: @@ -54,7 +53,7 @@ object Main { } } -object TestWithAutoTuling { +object TestWithAutoTupling { implicit def AToRichA(a: A): RichA = new RichA @@ -73,6 +72,5 @@ object TestWithAutoTuling { a.foo("a", "b") // Without implicits, a type error regarding invalid arity is generated at `foo(<error>"", "")`. // Typers#tryTypedApply:3274 only checks if the error is as the same position as `foo`, `"a"`, or `"b"`. - // None of these po } |